diff options
author | Patrick Simianer <pks@pks.rocks> | 2020-09-01 22:36:48 +0200 |
---|---|---|
committer | Patrick Simianer <pks@pks.rocks> | 2020-09-01 22:36:48 +0200 |
commit | 175847352f0b6ec9115563d478452279850551ac (patch) | |
tree | d80bb8328affbca1c6ab559ab2fb3c64914d2bde | |
parent | 0b854393ced23add6e1d24d23652f5cc937077e6 (diff) |
mouse-settings: evdev / libinput
-rwxr-xr-x | mouse-settings | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mouse-settings b/mouse-settings index a34214d..08e40f7 100755 --- a/mouse-settings +++ b/mouse-settings @@ -5,6 +5,14 @@ if [[ $(hostname) == "bogues" ]]; then xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "libinput Accel Speed (" | awk -F '[()]' '{print $2}') 0.1 elif [[ $(hostname) == "james" ]]; then export EXT_POINTER=$(xinput list | grep "QEMU Virtio Mouse" | grep pointer | awk -F'=' '{print $2}' | cut -f 1) - xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "libinput Accel Speed (" | awk -F '[()]' '{print $2}') -0.95 + # for libinput + if [[ $(xinput list-props $EXT_POINTER | grep libinput) > 0 ]]; 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 + fi xset m 3/2 4 fi |