Skip to content

Instantly share code, notes, and snippets.

@ericdodds
Created January 23, 2019 13:42
Show Gist options
  • Save ericdodds/ae1c740d56b344d3a56c5a1318e7e212 to your computer and use it in GitHub Desktop.
Save ericdodds/ae1c740d56b344d3a56c5a1318e7e212 to your computer and use it in GitHub Desktop.
Mac key repeat speed
Everybody knows that you can get a pretty fast keyboard repeat rate by changing a slider on the Keyboard tab of the Keyboard & Mouse System Preferences panel. But you can make it even faster! In Terminal, run this command:
defaults write NSGlobalDomain KeyRepeat -int 0
Then log out and log in again. The fastest setting obtainable via System Preferences is 2 (lower numbers are faster), so you may also want to try a value of 1 if 0 seems too fast. You can always visit the Keyboard & Mouse System Preferences panel to undo your changes.
You may find that a few applications don't handle extremely fast keyboard input very well, but most will do just fine with it.
[robg adds: We originally ran a very similar hint back in 2003. However, that hint had the order of the values reversed, and made the change via editing a preferences file instead of via a defaults write command. So I felt it worth re-running this version as it's simpler and more correct. If anyone knows what service to restart to skip the logout/login step, please comment.]
http://hints.macworld.com/article.php?story=20090823193018149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment