Skip to content

Instantly share code, notes, and snippets.

@imrvelj
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imrvelj/ad17b379bf6777930fdb to your computer and use it in GitHub Desktop.
Save imrvelj/ad17b379bf6777930fdb to your computer and use it in GitHub Desktop.
Disabling Mouse Acceleration -- bash script
#!/bin/bash
#wait for the desktop to settle
sleep 5
# turn off mouse acceleration
# number after '--set-prop' is your mouse id which you can find out by running 'xinput list'
xinput --set-prop 14 'Device Accel Profile' -1
xinput --set-prop 15 'Device Accel Profile' -1
xinput --set-prop 14 'Device Accel Velocity Scaling' 1
xinput --set-prop 15 'Device Accel Velocity Scaling' 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment