From a208eadd1289461bab82dd9554a2316898e7d23d Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Thu, 1 Sep 2022 20:03:35 -0400 Subject: refactor: organized the entire repo | feat: added pomodoro aliases inspired by bashbunni --- .config/awesome/xinput-daemon.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 .config/awesome/xinput-daemon.sh (limited to '.config/awesome/xinput-daemon.sh') diff --git a/.config/awesome/xinput-daemon.sh b/.config/awesome/xinput-daemon.sh new file mode 100755 index 0000000..959ab72 --- /dev/null +++ b/.config/awesome/xinput-daemon.sh @@ -0,0 +1,17 @@ +#!/bin/sh + + +apply_settings () { + + sleep 2 + xinput set-prop pointer:"Logitech USB Trackball" "libinput Natural Scrolling Enabled" 1 + xinput set-prop pointer:"Logitech USB Trackball" "libinput Accel Speed" 1.000000 + xinput set-prop pointer:"SteelSeries SteelSeries Rival 310 eSports Mouse" "libinput Accel Speed" 0.300000 + xinput set-prop pointer:"ELECOM ELECOM TrackBall Mouse" "libinput Accel Speed" 0.300000 + xinput set-prop pointer:"Logitech M705" "libinput Accel Speed" 1.000000 + +} + +apply_settings + +while true; do state=$(lsusb) && sleep 2 && [ "$state" != "$(lsusb)" ] && apply_settings; done -- cgit v1.2.3