diff options
author | Patrick Simianer <pks@pks.rocks> | 2020-08-12 08:22:24 +0200 |
---|---|---|
committer | Patrick Simianer <pks@pks.rocks> | 2020-08-12 08:22:24 +0200 |
commit | fc3305f1bf42a8ca267d2aa3b597c73850d9a8c4 (patch) | |
tree | 9ee2ef72377ba39a0ba816bdce274b431effd58f | |
parent | cd966e11d0f621e69446ab4628cada43d0bf72ab (diff) |
mouse-settings: james VM
-rwxr-xr-x | mouse-settings | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mouse-settings b/mouse-settings index 98b9827..a34214d 100755 --- a/mouse-settings +++ b/mouse-settings @@ -1,10 +1,10 @@ #!/usr/bin/env zsh -# for external TEX keyboard -#export EXT_POINTER=$(xinput list | grep "USB-HID Keyboard" | grep pointer | awk -F'=' '{print $2}' | cut -f 1) - 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 +elif [[ $(hostname) == "james" ]]; then + export EXT_POINTER=$(xinput list | grep "QEMU Virtio Mouse" | 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.95 + xset m 3/2 4 fi - |