summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2020-11-10 12:18:12 +0100
committerpks <pks@pks.rocks>2020-11-10 12:18:12 +0100
commit0a28deadbfe4de2e756383b486fe9117d92b907f (patch)
tree138c7c3a4f1e23a89a4d1c64e19ed2d114a3c454
parenta324b25a1fbe36455938b97a9a8d64585a78e3e6 (diff)
mouse-settings
-rwxr-xr-xmouse-settings7
1 files changed, 4 insertions, 3 deletions
diff --git a/mouse-settings b/mouse-settings
index 08e40f7..8255630 100755
--- a/mouse-settings
+++ b/mouse-settings
@@ -10,9 +10,10 @@ elif [[ $(hostname) == "james" ]]; then
xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "libinput Accel Speed (" | awk -F '[()]' '{print $2}') -0.95
fi
# for evdev
- if [[ $(xinput list-props $EXT_POINTER | grep Evdev) > 0 ]]; then
- xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "Device Accel Constant Deceleration (" | awk -F '[()]' '{print $2}') 2.0
- xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "Device Accel Adaptive Deceleration (" | awk -F '[()]' '{print $2}') 1.25
+ if [[ $(xinput list-props $EXT_POINTER | grep Evdev) != 0 ]]; then
+ xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "Device Accel Constant Deceleration (" | awk -F '[()]' '{print $2}') 3.0
+ 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}') 10
fi
xset m 3/2 4
fi