Thanks for the help everyone!
I had to modify the script slightly to do what I wanted which was to slow down the mouse permanently (not sure I disabled all acceleration).
In addition to the fact that both device IDs and property IDs change, since I have a Logitech M505 which uses their new unified receiver, the pointer entry and the keyboard entry will share the same name in xinput --list.
This is solved by stating the device name with a prefix, as in pointer:devicename or keyboard:devicename
Code:
#!/bin/bash
#wait for the desktop to settle
sleep 5
# adjust mouse acceleration
xinput set-prop 'pointer:Logitech USB Receiver' 'Device Accel Constant Deceleration' 2.5
xinput set-prop 'pointer:Logitech USB Receiver' 'Device Accel Adaptive Deceleration' 15
xinput set-prop 'pointer:Logitech USB Receiver' 'Device Accel Velocity Scaling' 9
EDIT: Well the effect vanishes upon suspend/sleep -> wake - the script should probably go somewhere else than startup scripts...
Bookmarks