diff options
| author | kj_sh604 | 2025-11-09 00:40:17 -0500 |
|---|---|---|
| committer | kj_sh604 | 2025-11-09 00:40:17 -0500 |
| commit | 2eb1f07e6031a84650e93c5292a16ca20fa22d61 (patch) | |
| tree | 2c5dedfbba4dac0292295bdbf05e4f589f2e2e96 /.local/bin/awesome-xinputD | |
| parent | 77949a068755ee72d7b5eaf5570cd2cd34a8d222 (diff) | |
feat: return back to awesomeWM
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 |
