Created
October 17, 2015 23:14
-
-
Save 20015jjw/22f176cee81c992b5c59 to your computer and use it in GitHub Desktop.
OS X simple mouse acceleration switch
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
mouse_acc () { | |
if [ $1 = "enable" ] | |
then | |
echo "Mouse Acceleration Enabled; Log back in please;" | |
defaults write .GlobalPreferences com.apple.mouse.scaling 0 | |
elif [ $1 = "disable" ] | |
then | |
echo "Mouse Acceleration Disabled; Log back in please;" | |
defaults write .GlobalPreferences com.apple.mouse.scaling -1 | |
else | |
echo "Current mouse acceleration is:" \ | |
`defaults read .GlobalPreferences com.apple.mouse.scaling` | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment