summaryrefslogtreecommitdiff
path: root/mouse-settings
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2018-05-21 20:09:15 +0200
committerPatrick Simianer <pks@pks.rocks>2018-05-21 20:09:15 +0200
commit92335d5ec53be870685e6f1797f69a21db5d435f (patch)
tree114f6ec4ec29a9838e63ec29530aec367c2cc82c /mouse-settings
parentf970e85a52663e42b613132760eaa5e4bc3e642f (diff)
mouse -> mouse-settings
Diffstat (limited to 'mouse-settings')
-rwxr-xr-xmouse-settings13
1 files changed, 13 insertions, 0 deletions
diff --git a/mouse-settings b/mouse-settings
new file mode 100755
index 0000000..8065c2f
--- /dev/null
+++ b/mouse-settings
@@ -0,0 +1,13 @@
+#!/usr/bin/env zsh
+
+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
+ exec xinput set-prop $EXT_POINTER 268 2.5
+ exec xinput set-prop $EXT_POINTER 269 1.25
+fi
+