summaryrefslogtreecommitdiff
path: root/mouse
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2018-05-21 20:08:56 +0200
committerPatrick Simianer <pks@pks.rocks>2018-05-21 20:08:56 +0200
commitf970e85a52663e42b613132760eaa5e4bc3e642f (patch)
treee24df18188cacba251f32fb90776f0ae0d051e0f /mouse
parentaa9ecc9449cdf67d2fa7326b6c5a0cb871cde6ab (diff)
mouse: fix
Diffstat (limited to 'mouse')
-rwxr-xr-xmouse6
1 files changed, 3 insertions, 3 deletions
diff --git a/mouse b/mouse
index c4d76e3..8065c2f 100755
--- a/mouse
+++ b/mouse
@@ -3,9 +3,9 @@
export EXT_POINTER=$(xinput list | grep "USB-HID Keyboard" | grep pointer | awk -F'=' '{print $2}' | cut -f 1)
if [[ $(hostname) == "bryant" ]]; then
- xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "Device Accel Constant Deceleration" | cut -d: -f 2 | strips) 2.5
- xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "Device Accel Constant Deceleration" | cut -d: -f 2 | strips) 1.0
- xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "Device Adaptive Constant Deceleration" | cut -d: -f 2 | strips) 5.0
+ xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "Device Accel Constant Deceleration" | awk -F '[()]' '{print $2}') 2.5
+ xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "Device Accel Adaptive Deceleration" | awk -F '[()]' '{print $2}') 1.0
+ xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "Device Accel Velocity Scaling" | awk -F '[()]' '{print $2}') 5.0
elif [[ $(hostname) == "bogues" ]]; then
exec xinput set-prop $EXT_POINTER 268 2.5
exec xinput set-prop $EXT_POINTER 269 1.25