diff options
| author | Blista Kanjo | 2023-07-14 03:08:32 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2023-07-14 03:08:32 -0400 |
| commit | 3d1de55b4a7d28699528f46a6cf07b3079b77749 (patch) | |
| tree | 54ff66ee5b97e960786d08e7c5a8b2b710b52e3e /.config/awesome/xinput-daemon.sh | |
| parent | a30cee6889427b040ab8013fbd966d7407e8eb1f (diff) | |
refactor: move `awesome` scripts to `~/.local/bin`
Diffstat (limited to '.config/awesome/xinput-daemon.sh')
| -rwxr-xr-x | .config/awesome/xinput-daemon.sh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/.config/awesome/xinput-daemon.sh b/.config/awesome/xinput-daemon.sh deleted file mode 100755 index 153a5b4..0000000 --- a/.config/awesome/xinput-daemon.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/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 - if [ -f ~/.Xmodmap ]; then xmodmap ~/.Xmodmap; fi -} - -apply_settings - -while true; do - state=$(lsusb) - sleep 2 - - if [ "$state" != "$(lsusb)" ]; then - apply_settings - fi -done |
