diff options
| author | Kyle Javier | 2021-10-02 00:31:04 -0400 |
|---|---|---|
| committer | Kyle Javier | 2021-10-02 00:31:44 -0400 |
| commit | fea35f529d4395d39fdbfa83a3b0b109411cb130 (patch) | |
| tree | 2ebc26ab711431fce0543ec7cf15ddc7fd903b63 /awesome/xinput-daemon.sh | |
| parent | 16b957daf8b789be63a95eb29942ed7d850958e5 (diff) | |
removed bashisms in scripts (now compatible with POSIX-compliant shells)
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 8fc9a18..c682530 100755 --- a/awesome/xinput-daemon.sh +++ b/awesome/xinput-daemon.sh @@ -1,6 +1,6 @@ -#!/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 -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 |
