Skip to content

Instantly share code, notes, and snippets.

@roalcantara
Last active April 30, 2025 16:03
Show Gist options
  • Select an option

  • Save roalcantara/2323e5cd42594573bb81df2a8fd6fabc to your computer and use it in GitHub Desktop.

Select an option

Save roalcantara/2323e5cd42594573bb81df2a8fd6fabc to your computer and use it in GitHub Desktop.
Increase the Key repeat rate in Mac OS
# reset the system defaults
# xset r rate
# output the current InitialKeyRepeat`value
defaults read NSGlobalDomain InitialKeyRepeat
# output the current KeyRepeat`value
defaults read NSGlobalDomain KeyRepeat
# disable alternate characters when holding a key
defaults write -g ApplePressAndHoldEnabled -bool false
# normal minimum is 15 (225 ms)
defaults write -g InitialKeyRepeat -int 10
# normal minimum is 2 (30 ms)
defaults write -g KeyRepeat -int 1
# reboot to apply the changes
sudo shutdown -r now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment