diff options
-rwxr-xr-x | mouse-settings | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/mouse-settings b/mouse-settings index c1df053..6e50dbc 100755 --- a/mouse-settings +++ b/mouse-settings @@ -1,14 +1,10 @@ #!/usr/bin/env zsh -export EXT_POINTER=$(xinput list | grep "USB-HID Keyboard" | grep pointer | awk -F'=' '{print $2}' | cut -f 1) +# for external TEX keyboard +#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" | 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 - 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 +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 +else |