diff options
| author | Blista Kanjo | 2021-11-06 12:06:38 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2021-11-06 12:06:38 -0400 |
| commit | 1cba265577fe44b38859f01925fae814853523ff (patch) | |
| tree | d459ce049dd7d6426793c12ee50abd51b4cf9aaf /awesome/xinput-daemon.sh | |
| parent | 5bd4f9c8a8d1df5af4dcb98561e345f514321d6a (diff) | |
xinput-daemon is now POSIX-compliant again
Diffstat (limited to 'awesome/xinput-daemon.sh')
| -rwxr-xr-x | awesome/xinput-daemon.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/awesome/xinput-daemon.sh b/awesome/xinput-daemon.sh index 17d7d8f..83a19ef 100755 --- a/awesome/xinput-daemon.sh +++ b/awesome/xinput-daemon.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh xinput set-prop pointer:"Logitech USB Trackball" "libinput Natural Scrolling Enabled" 1 xinput set-prop pointer:"Logitech USB Trackball" "libinput Accel Speed" 0.90000 @@ -10,4 +10,4 @@ xinput set-prop pointer:"Logitech M705" "libinput Accel Speed" 1.000000 xinput set-prop pointer:"Logitech M705" "libinput Scrolling Pixel Distance" 50 -while true; do state=$(lsusb) && sleep 2 && [[ $state != $(lsusb) ]] && /home/kylert/.config/awesome/xinput.sh; done +while true; do state=$(lsusb) && sleep 2 && [ "$state" != "$(lsusb)" ] && /home/kylert/.config/awesome/xinput.sh; done |
