From 24294944f41fdadc536ed6470ceb5e8dc5c7b146 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 23 Feb 2020 14:35:30 +0100 Subject: new mouse-setting --- mouse-settings | 16 ++++++---------- 1 file 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 -- cgit v1.2.3