diff options
author | Patrick Simianer <pks@pks.rocks> | 2018-11-08 08:33:59 +0100 |
---|---|---|
committer | Patrick Simianer <pks@pks.rocks> | 2018-11-08 08:33:59 +0100 |
commit | 93ad1606b49c34ddd486db22743d84bce7d47c51 (patch) | |
tree | c7a8d45f2896f6626e27ffad3628fcba72ea2169 | |
parent | 699a6c3e96198965adaeb94a377a62b09400f546 (diff) |
mouse-settings: use evdev
-rwxr-xr-x | mouse-settings | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mouse-settings b/mouse-settings index 01dcca1..c1df053 100755 --- a/mouse-settings +++ b/mouse-settings @@ -3,9 +3,12 @@ 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 -P "libinput Accel Speed \(\d+\)" | awk -F '[()]' '{print $2}') -0.75 + 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 + 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.25 + xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "Device Accel Velocity Scaling" | awk -F '[()]' '{print $2}') 5.0 fi |