Created
January 4, 2016 09:03
-
-
Save RoryDungan/f7033e9ef4db492d1e0e to your computer and use it in GitHub Desktop.
Fix crazy fast cursor movement with Razer DeathAdder mouse on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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