diff options
author | Patrick Simianer <pks@pks.rocks> | 2018-05-03 21:08:30 +0200 |
---|---|---|
committer | Patrick Simianer <pks@pks.rocks> | 2018-05-03 21:08:30 +0200 |
commit | aa9ecc9449cdf67d2fa7326b6c5a0cb871cde6ab (patch) | |
tree | 7fe321d08b56b85a63d2c566ed90b3ef5c1324b9 | |
parent | 6779474631e8f0c48facef79ebb19b27c8d9e3ec (diff) |
mouse: set pointer sensitivity
-rwxr-xr-x | mouse | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1,5 +1,13 @@ +#!/usr/bin/env zsh + export EXT_POINTER=$(xinput list | grep "USB-HID Keyboard" | grep pointer | awk -F'=' '{print $2}' | cut -f 1) -xinput set-prop $EXT_POINTER 269 2.5 -xinput set-prop $EXT_POINTER 270 1.0 -xinput set-prop $EXT_POINTER 271 5.0 + +if [[ $(hostname) == "bryant" ]]; then + xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "Device Accel Constant Deceleration" | cut -d: -f 2 | strips) 2.5 + xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "Device Accel Constant Deceleration" | cut -d: -f 2 | strips) 1.0 + xinput set-prop $EXT_POINTER $(xinput list-props $EXT_POINTER | grep "Device Adaptive Constant Deceleration" | cut -d: -f 2 | strips) 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 |