mirror of https://github.com/captn3m0/Scripts.git
caps lock handling script.
This commit is contained in:
parent
316b6aede0
commit
ee0314b046
|
@ -0,0 +1,9 @@
|
|||
# This script is called whenever I press the caps-lock.
|
||||
# The key-binding is managed by xbindkey
|
||||
command=`ps -p $(xdotool getactivewindow getwindowpid) -o command= -c`
|
||||
window=`xdotool getactivewindow`
|
||||
if [ "$command" = "chrome" ]; then
|
||||
xdotool key --window "$window" ctrl+l
|
||||
elif [ "$command" = "linuxdcpp" ]; then
|
||||
xdotool key --window "$window" ctrl+Tab
|
||||
fi
|
Loading…
Reference in New Issue