summaryrefslogtreecommitdiff
path: root/mouse-settings
blob: 01dcca14150f1e440177e7844f89095a7e16f8dc (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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 -P "libinput Accel Speed \(\d+\)" | awk -F '[()]' '{print $2}') -0.75
elif [[ $(hostname) == "bogues" ]]; then
  exec xinput set-prop $EXT_POINTER 268 2.5
  exec xinput set-prop $EXT_POINTER 269 1.25
fi