macos-settings A reference page for the macos-settings resource
The macos-settings resource manages common macOS system preferences using the built-in defaults command. It covers mouse, keyboard, trackpad, and Dock settings — everything you need to reproduce your preferred system configuration on a new Mac.
All sections and their sub-keys are optional. You only need to declare the settings you want to manage.
Parameter Type Default Description naturalScrollingboolean trueScroll content in the natural direction (content follows finger). When false, uses the traditional scroll direction. accelerationboolean trueEnable mouse acceleration. When false, the cursor moves at a fixed speed regardless of how fast the mouse is moved. speednumber (0–3) 1.5Mouse tracking speed. Higher values make the cursor move farther per physical movement.
Parameter Type Default Description keyRepeatinteger 6Rate of key repeat while a key is held. Lower = faster (1 is fastest; 120 effectively disables repeat). initialKeyRepeatinteger 68Delay before key repeat begins (in ticks). Lower = shorter delay (10 minimum). pressAndHoldboolean trueWhen true, holding a key shows the accent character picker. When false, the key repeats instead. fnKeysAsStandardKeysboolean falseWhen true, the F1–F12 keys act as standard function keys; press Fn to trigger special actions (brightness, volume, etc.). keyboardNavigationboolean falseWhen true, enables Tab-based focus navigation in system dialogs (equivalent to "Keyboard navigation" in System Settings).
Parameter Type Default Description speednumber (0–3) 1.5Trackpad tracking speed. Higher values make the cursor move farther per swipe distance.
Parameter Type Default Description position"left" | "bottom" | "right""bottom"Position of the Dock on screen. iconSizeinteger (16–128) 48Dock icon size in pixels. autohideboolean falseAutomatically hide and show the Dock when the cursor moves near the screen edge. hoverDelaynumber 0.2Seconds to wait before the Dock appears when hovering near the screen edge. Set to 0 for instant reveal. animationSpeednumber 0.5Duration in seconds of the Dock slide-in/out animation. Set to 0 to disable the animation entirely. showRecentsboolean trueShow recently opened apps in a dedicated section of the Dock. minimizeEffect"genie" | "scale" | "suck""genie"Window minimize animation style.
The table below shows the underlying defaults key used for each friendly parameter name.
Section Parameter Domain Key mouse naturalScrollingNSGlobalDomaincom.apple.swipescrolldirectionmouse accelerationNSGlobalDomaincom.apple.mouse.linear (inverted)mouse speedNSGlobalDomaincom.apple.mouse.scalingkeyboard keyRepeatNSGlobalDomainKeyRepeatkeyboard initialKeyRepeatNSGlobalDomainInitialKeyRepeatkeyboard pressAndHoldNSGlobalDomainApplePressAndHoldEnabledkeyboard fnKeysAsStandardKeysNSGlobalDomaincom.apple.keyboard.fnStatekeyboard keyboardNavigationNSGlobalDomainAppleKeyboardUIMode (0/2)trackpad speedNSGlobalDomaincom.apple.trackpad.scalingdock positioncom.apple.dockorientationdock iconSizecom.apple.docktilesizedock autohidecom.apple.dockautohidedock hoverDelaycom.apple.dockautohide-delaydock animationSpeedcom.apple.dockautohide-time-modifierdock showRecentscom.apple.dockshow-recentsdock minimizeEffectcom.apple.dockmineffect
[
{
"type" : "macos-settings" ,
"os" : [ "macOS" ],
"mouse" : {
"naturalScrolling" : true
},
"keyboard" : {
"keyRepeat" : 2 ,
"initialKeyRepeat" : 15 ,
"pressAndHold" : false
},
"dock" : {
"position" : "left" ,
"iconSize" : 36 ,
"autohide" : true ,
"showRecents" : false
}
}
]
[
{
"type" : "macos-settings" ,
"os" : [ "macOS" ],
"mouse" : {
"naturalScrolling" : false ,
"acceleration" : false
},
"keyboard" : {
"fnKeysAsStandardKeys" : true
}
}
]
[
{
"type" : "macos-settings" ,
"os" : [ "macOS" ],
"trackpad" : {
"speed" : 2.5
}
}
]
This resource is macOS only and has no effect on Linux.
No software installation is required — defaults is a built-in macOS command.
Dock settings take effect immediately (the Dock is automatically restarted). Other settings typically take effect the next time you open an application or after logging out.
When the resource is removed from your configuration, all managed settings are reset to their macOS system defaults using defaults delete.
Changes to fnKeysAsStandardKeys may require a full system restart to take effect.
The keyRepeat and initialKeyRepeat values use macOS internal tick units, not milliseconds. Smaller values produce faster key repeat.