diff options
Diffstat (limited to '.local/bin/awesome-xinputD')
| -rwxr-xr-x | .local/bin/awesome-xinputD | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.local/bin/awesome-xinputD b/.local/bin/awesome-xinputD new file mode 100755 index 0000000..393555a --- /dev/null +++ b/.local/bin/awesome-xinputD @@ -0,0 +1,20 @@ +#!/bin/sh + +apply_settings() { + sleep 2 + xinput set-prop pointer:"Synaptics TM3276-022" "Device Enabled" 0 + xinput set-prop pointer:"G2Touch Multi-Touch by G2TSP" "Device Enabled" 0 + xinput set-prop pointer:"TPPS/2 IBM TrackPoint" "libinput Scrolling Pixel Distance" 10 + xinput set-prop pointer:"Logitech USB Trackball" "libinput Accel Speed" 1.000000 + xinput set-prop pointer:"Logitech K400 Plus" "libinput Accel Speed" 0.800000 + xinput set-prop pointer:"Logitech K400 Plus" "libinput Natural Scrolling Enabled" 1 + [ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap +} + +apply_settings + +while true; do + state=$(lsusb) + sleep 2 + [ "$state" != "$(lsusb)" ] && apply_settings +done |
