Skip to content

Instantly share code, notes, and snippets.

@gdavis
Created July 3, 2022 14:27
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 gdavis/74a82bbd376ee6e1a7771a88f4d70fe2 to your computer and use it in GitHub Desktop.
Save gdavis/74a82bbd376ee6e1a7771a88f4d70fe2 to your computer and use it in GitHub Desktop.
Disable Mouse Scaling on macOS via Terminal

Adopted from: https://techinfluence.net/turn-off-mouse-acceleration-on-mac/#Method_2_Turn_Off_Mouse_Acceleration_Using_the_Terminal

Check the current value of scaling in user defaults:

~ defaults read .GlobalPreferences com.apple.mouse.scaling

This will display a hidden preference setting that you can change by altering the number at the end. If the mouse acceleration feature is enabled, the above command should display a value between 0 and 3. This is the value that is altered when you move the ‘Tracking Speed’ slider

Disable mouse acceleration:

~ defaults write .GlobalPreferences com.apple.mouse.scaling -1

Logout and back in for the changes to take effect.

Note: Altering the ‘Tracking Speed’ setting under ‘System Preferences’—as described in method 1 above, will automatically reactivate the mouse acceleration feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment