Skip to content

Instantly share code, notes, and snippets.

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 vinicius73/4088c95bf8bacb37bfc8c1c587f5c0eb to your computer and use it in GitHub Desktop.
Save vinicius73/4088c95bf8bacb37bfc8c1c587f5c0eb 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