blob: 47014a88dc3c167457493094a5b85542d607bba9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/env zsh
if [[ $(hostname) == "bogues" ]]; then
export EXT_POINTER=$(xinput list | grep "TPPS/2 IBM TrackPoint" | 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.1
elif [[ $(hostname) == "james" ]]; then
export EXT_POINTER=$(xinput list | grep "QEMU Virtio Mouse" | grep pointer | awk -F'=' '{print $2}' | cut -f 1)
# 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}') 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
|