diff options
Diffstat (limited to 'bin/hush/setup-inputs')
-rwxr-xr-x | bin/hush/setup-inputs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/hush/setup-inputs b/bin/hush/setup-inputs new file mode 100755 index 0000000..6aaa19f --- /dev/null +++ b/bin/hush/setup-inputs @@ -0,0 +1,18 @@ +#!/bin/sh + +# key bindings +setxkbmap -option ctrl:nocaps +setxkbmap -option compose:caps +xmodmap $HOME/.Xmodmap +"$(dirname "$0")"/numkeys on + +# trackpad settings +xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Accel Speed" 0.4 +xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1 + +# restart services that depend on keyboard reconfigurations +if pgrep readproctitle > /dev/null; then + svre xcape + svre kuake + svre xbindkeys +fi |