Skip to content

Instantly share code, notes, and snippets.

@RoryDungan

RoryDungan/mouse.sh

Created Jan 4, 2016
Embed
What would you like to do?
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