Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@RoryDungan
Created January 4, 2016 09:03
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 RoryDungan/f7033e9ef4db492d1e0e to your computer and use it in GitHub Desktop.
Save RoryDungan/f7033e9ef4db492d1e0e to your computer and use it in GitHub Desktop.
Fix crazy fast cursor movement with Razer DeathAdder mouse on Ubuntu
#!/bin/bash
xinput list |
grep -E 'DeathAdder.*pointer' |
awk -F"=" '{print $2}' |
awk '{print $1}' |
while read -r id
do
xinput --set-prop $id "Device Accel Constant Deceleration" 3
xinput --set-prop $id "Device Accel Velocity Scaling" 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment