Created
March 18, 2018 17:53
-
-
Save tzhenghao/17ac5aeab12a89441be20ecfadf1dfd3 to your computer and use it in GitHub Desktop.
Disable MacOS mouse acceleration
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 | |
set -euo pipefail | |
# Author: Zheng Hao Tan | |
# Email: [email protected] | |
# This shell scripts disables mouse acceleration on a MacOS device. | |
echo 'The current mouse scaling value is:' | |
defaults read .GlobalPreferences com.apple.mouse.scaling | |
echo 'Disabling mouse acceleration...' | |
defaults write .GlobalPreferences com.apple.mouse.scaling -1 | |
echo 'Done!' | |
echo 'The final mouse scaling value is:' | |
defaults read .GlobalPreferences com.apple.mouse.scaling |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you!
this just helped me troubleshoot where the hell acceleration was coming from!