How to use Mac Dock Command Generator
- Select the Dock customizations you want: spacers, auto-hide settings, size, magnification, position, minimize effect, show recents, and more.
- The tool generates a single Terminal command combining all your selections, ending with 'killall Dock' to apply changes immediately.
- Copy the generated command and paste it into Terminal, then press Enter. Your Dock will restart with the new settings.
- Each option shows an undo command to revert that specific change. Copy and run the undo command if you want to remove a customization.
- Use presets like 'Fast auto-hide' or 'Minimal Dock' to apply common configurations quickly, or build your own custom combination.
Questions about this tool
Is it safe to run these commands?
Yes. These commands only edit your Dock's preference file (com.apple.dock.plist). They don't modify system files or other apps. However, it's good practice to back up your current Dock settings first using: defaults export com.apple.dock ~/Desktop/dock-backup.plist
Why do I need to run killall Dock?
The Dock process needs to restart to read the new preferences. 'killall Dock' safely restarts it. Your pinned apps and windows stay open; only the Dock itself restarts.
How do I remove a spacer I added?
Drag the spacer out of the Dock like you would remove an app icon. It will disappear in a poof animation. Alternatively, run the undo command or reset your Dock to defaults.
Will these settings survive macOS updates?
Yes. Dock preferences are stored in your user account and persist across macOS updates and restarts. They're part of your user profile, not system configuration.
What's the difference between regular and small spacers?
Regular spacers create full app-width space in the Dock. Small spacers create half-width space. Both are useful for visually grouping apps. You can mix both types in the same Dock.
Which settings are hidden vs in System Settings?
Settings like auto-hide, magnification, position, minimize effect and show recents are available in System Settings → Desktop & Dock. Hidden settings like auto-hide-delay, static-only, and scroll-to-open are only accessible via Terminal. Spacers also require Terminal commands.
Can I backup and restore all Dock settings?
Yes. Backup: defaults export com.apple.dock ~/Desktop/dock-backup.plist. Restore: defaults import com.apple.dock ~/Desktop/dock-backup.plist && killall Dock. This backs up everything including pinned apps and hidden settings.
What happens if I run the full reset command?
The command 'defaults delete com.apple.dock; killall Dock' removes all Dock customizations and returns it to macOS defaults. Warning: this also removes your pinned apps. Use it only if you want a completely fresh start.