From 1fa25f9c4e98bc6b51f9b75b68bdb38b14b01beb Mon Sep 17 00:00:00 2001 From: Kyle Javier Date: Tue, 21 Sep 2021 20:23:22 -0400 Subject: created a daemon to handle mouse unplug/replug --- awesome/xinput-daemon.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 awesome/xinput-daemon.sh (limited to 'awesome/xinput-daemon.sh') 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 -- cgit v1.2.3