diff options
| author | Blista Kanjo | 2021-11-06 10:50:52 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2021-11-06 10:50:52 -0400 |
| commit | 5bd4f9c8a8d1df5af4dcb98561e345f514321d6a (patch) | |
| tree | 8ada29f6c7c20098a2b6db024fa58733d9f38f1e | |
| parent | 7ceef39595286aa5cfafc1e884936224630b9503 (diff) | |
now using bash due to a looping error under posix compliant shells
| -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 9860897..17d7d8f 100755 --- a/awesome/xinput-daemon.sh +++ b/awesome/xinput-daemon.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash 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 |
