summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2020-02-23 14:35:30 +0100
committerPatrick Simianer <pks@pks.rocks>2020-02-23 14:35:30 +0100
commit24294944f41fdadc536ed6470ceb5e8dc5c7b146 (patch)
treec8f53b6c7586af5cf7d60848480a87814f0364a8
parent70557846812df909368476fcd09bf8e8a8cd266b (diff)
new mouse-setting
-rwxr-xr-xmouse-settings16
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