fixes and some improvements
[distro-setup] / input-setup
index 8f0d99b971d32a8f033409bcb540cd5365bd5a80..8085d074feb85b49ff72025c26081c62033055ba 100755 (executable)
@@ -93,7 +93,7 @@ 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  'libinput Accel Speed' -0.9
+  xinput --set-prop $id  'libinput Accel Speed' -0.9
 fi
 
 set +x