Skip to content

Instantly share code, notes, and snippets.

@rzwitserloot
Created November 16, 2009 17:03
Show Gist options
  • Save rzwitserloot/236138 to your computer and use it in GitHub Desktop.
Save rzwitserloot/236138 to your computer and use it in GitHub Desktop.
#!/bin/bash
#Sets mouse tracking speed on Mac OS X; capable of faster speeds than the selection dialog.
#Unfortunately, you will have to log out and back in again for changes to propagate.
#My tracking speed is at 4.8.
if [ "$1" == "" ]; then
echo Sets the tracking speed of the mouse. "3.0" is the fastest setting in the mouse settings pane.
echo Your current tracking speed is: `defaults read -g com.apple.mouse.scaling`
exit 0
fi
defaults write -g com.apple.mouse.scaling $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment