Skip to content

Instantly share code, notes, and snippets.

@20015jjw
Created October 17, 2015 23:14
Show Gist options
  • Save 20015jjw/22f176cee81c992b5c59 to your computer and use it in GitHub Desktop.
Save 20015jjw/22f176cee81c992b5c59 to your computer and use it in GitHub Desktop.
OS X simple mouse acceleration switch
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