Skip to content

macOS defaults

Generated page

Built from the repository sources at publish time by scripts/docsgen. Do not edit by hand; change the source file named below and the page follows.

Source: run_once_after_macos-defaults.sh.tmpl

42 defaults write calls, run once per content hash on non-headless macOS. Dock, Finder and SystemUIServer are restarted afterwards.

Keyboard

Domain Key Type Value Scope
NSGlobalDomain KeyRepeat int 2 user
NSGlobalDomain InitialKeyRepeat int 15 user
NSGlobalDomain ApplePressAndHoldEnabled bool false user
NSGlobalDomain AppleKeyboardUIMode int 3 user

Finder

Domain Key Type Value Scope
com.apple.finder AppleShowAllFiles bool true user
NSGlobalDomain AppleShowAllExtensions bool true user
com.apple.finder ShowPathbar bool true user
com.apple.finder ShowStatusBar bool true user
com.apple.finder _FXSortFoldersFirst bool true user
com.apple.finder FXDefaultSearchScope string SCcf user
com.apple.finder FXEnableExtensionChangeWarning bool false user
com.apple.finder _FXShowPosixPathInTitle bool true user
com.apple.desktopservices DSDontWriteNetworkStores bool true user

Screenshots

Domain Key Type Value Scope
com.apple.screencapture location string $HOME/Pictures/Screenshots user
com.apple.screencapture type string png user
com.apple.screencapture disable-shadow bool true user

Dock

Domain Key Type Value Scope
com.apple.dock autohide bool true user
com.apple.dock autohide-time-modifier float 0.4 user
com.apple.dock autohide-delay float 0 user
com.apple.dock show-recents bool false user
com.apple.dock mineffect string scale user
com.apple.dock minimize-to-application bool true user
com.apple.dock expose-group-apps bool true user

Mission Control / Spaces

Domain Key Type Value Scope
com.apple.dock mru-spaces bool false # don't reorder spaces by recent use user

Trackpad

Domain Key Type Value Scope
com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking bool true user
NSGlobalDomain com.apple.mouse.tapBehavior int 1 current host
NSGlobalDomain com.apple.mouse.tapBehavior int 1 user

Global UI

Domain Key Type Value Scope
NSGlobalDomain NSAutomaticCapitalizationEnabled bool false user
NSGlobalDomain NSAutomaticDashSubstitutionEnabled bool false user
NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled bool false user
NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled bool false user
NSGlobalDomain NSAutomaticSpellingCorrectionEnabled bool false user
NSGlobalDomain NSNavPanelExpandedStateForSaveMode bool true user
NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 bool true user

Safari (dev tools)

Domain Key Type Value Scope
com.apple.Safari IncludeDevelopMenu bool true user
com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey bool true user

TextEdit (plain text)

Domain Key Type Value Scope
com.apple.TextEdit RichText int 0 user
com.apple.TextEdit PlainTextEncoding int 4 user
com.apple.TextEdit PlainTextEncodingForWrite int 4 user

Activity Monitor

Domain Key Type Value Scope
com.apple.ActivityMonitor ShowCategory int 0 user
com.apple.ActivityMonitor SortColumn string CPUUsage user
com.apple.ActivityMonitor SortDirection int 0 user