Skip to content

Instantly share code, notes, and snippets.

@sinan
Last active January 5, 2024 01:26
Show Gist options
  • Select an option

  • Save sinan/e98492906b8b0cb28c6f0297b9d7af37 to your computer and use it in GitHub Desktop.

Select an option

Save sinan/e98492906b8b0cb28c6f0297b9d7af37 to your computer and use it in GitHub Desktop.

Revisions

  1. sinan revised this gist Jan 5, 2024. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion mac-defaults-on-a-new-setup
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,8 @@ defaults write -g ApplePressAndHoldEnabled -bool false
    # delay until a key repeats
    defaults write -g InitialKeyRepeat -int 25
    # duration between repeats after repeat initiation
    defaults write -g KeyRepeat -int 1
    defaults write -g KeyRepeat -int 1

    # remove default shadow from window screenshots
    defaults write com.apple.screencapture disable-shadow -bool true
    killall SystemUIServer
  2. sinan created this gist Dec 17, 2019.
    7 changes: 7 additions & 0 deletions mac-defaults-on-a-new-setup
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # get rid of press and hold character popup
    defaults write -g ApplePressAndHoldEnabled -bool false

    # delay until a key repeats
    defaults write -g InitialKeyRepeat -int 25
    # duration between repeats after repeat initiation
    defaults write -g KeyRepeat -int 1