Skip to content

Instantly share code, notes, and snippets.

@thursby
Last active March 25, 2017 16:21
Show Gist options
  • Save thursby/8ac6cb96c84b6d20a3fb1bf3048d46ed to your computer and use it in GitHub Desktop.
Save thursby/8ac6cb96c84b6d20a3fb1bf3048d46ed to your computer and use it in GitHub Desktop.
Set the sensitivity for the Logitech M570 in Linux. For whatever reason most controls won't let you set sensitivity less than 1. My trackball likes 0.4. The way this is set is weird because the IDs seem to change whenever the USB is connected and disconnected. I wrote this oneliner to find 'em and change it.
xinput list --short | grep Logitech | awk '{print $5}' | cut -f2 -d"=" | xargs -I id xinput set-prop id "Device Accel Constant Deceleration" 0.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment