diff options
| author | Kyle Javier | 2021-09-21 20:23:22 -0400 |
|---|---|---|
| committer | Kyle Javier | 2021-09-21 20:23:22 -0400 |
| commit | 1fa25f9c4e98bc6b51f9b75b68bdb38b14b01beb (patch) | |
| tree | db6c41d3d486f62d2a6a70c4132d0ef65c84a79a /awesome/xinput-daemon.sh | |
| parent | 2ebc19b31534d4a12b65b02bd539775c36870965 (diff) | |
created a daemon to handle mouse unplug/replug
Diffstat (limited to 'awesome/xinput-daemon.sh')
| -rwxr-xr-x | awesome/xinput-daemon.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/awesome/xinput-daemon.sh b/awesome/xinput-daemon.sh new file mode 100755 index 0000000..54b54dd --- /dev/null +++ b/awesome/xinput-daemon.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +xinput set-prop pointer:"Logitech USB Trackball" "libinput Natural Scrolling Enabled" 0 +xinput set-prop pointer:"Logitech USB Trackball" "libinput Accel Speed" 0.90000 + +while true; do state=$(lsusb) && sleep 2 && [[ $state != $(lsusb) ]] && /home/kylert/.config/awesome/xinput.sh; done |
