lots: shellcheck, streaming stuff, fixes
[distro-setup] / input-setup
index 8085d074feb85b49ff72025c26081c62033055ba..46520b949b91720d21bbe29a9f3e52cbe15e994f 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/bash
+# shellcheck source=/a/bin/ds/.bashrc
 if [[ -s ~/.bashrc ]];then . ~/.bashrc;fi
 set -x
 # Copyright (C) 2016 Ian Kelling
@@ -90,11 +91,11 @@ if set_device_id "Logitech Unifying Device"; then
   xinput --set-prop "$device_id" 'Evdev Middle Button Emulation' 1
 fi
 
-# slow down ploopy trackball, until we recompile firmware
-id=$(xinput list | grep -F 'Ploopy Corporation Trackball Mouse' | sed -rn 's/.*[[:space:]]id=([^[:space:]]*).*/\1/p' ||:)
-if [[ $id ]]; then
-  xinput --set-prop $id  'libinput Accel Speed' -0.9
-fi
+## slow down ploopy trackball, until we recompile firmware
+id=$(xinput list | grep -F 'Ploopy Corporation Trackball Mouse' | sed -rn 's/.*[[:space:]]id=([^[:space:]]*).*/\1/p' ||:)
+if [[ $id ]]; then
+  xinput --set-prop $id  'libinput Accel Speed' -0.9
+fi
 
 set +x
 exit 0