Skip to content

Instantly share code, notes, and snippets.

@olssonm
Last active July 23, 2025 13:50
Show Gist options
  • Save olssonm/87e0d72b1ef80fffb6f5a1fba1d17ea1 to your computer and use it in GitHub Desktop.
Save olssonm/87e0d72b1ef80fffb6f5a1fba1d17ea1 to your computer and use it in GitHub Desktop.
Disable resizing of the macOS dock
defaults write com.apple.dock size-immutable -bool true; killall Dock
@olssonm
Copy link
Author

olssonm commented May 12, 2021

@Supaflowin

defaults write com.apple.dock size-immutable -bool false; killall Dock

@gunter423
Copy link

OMG THANK YOU

@olssonm
Copy link
Author

olssonm commented Nov 28, 2024

@swoondrones This doesn't lock the length of the dock (if you add/remove apps of course the dock size will change). This command prevents the actual icon sizes in the dock to change and prevent accidental size change by grabbing the dock divider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment