Last active
July 23, 2025 13:50
-
-
Save olssonm/87e0d72b1ef80fffb6f5a1fba1d17ea1 to your computer and use it in GitHub Desktop.
Disable resizing of the macOS dock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defaults write com.apple.dock size-immutable -bool true; killall Dock |
Another useful setting is to lock the icon sizes, so that the Dock is always the same height:
defaults write com.apple.dock tilesize -int 60; killall Dock
update for 2020:
defaults write com.apple.dock size-immutable -bool true; killall Dock
how do I undo this
Author
@Supaflowin
defaults write com.apple.dock size-immutable -bool false; killall DockOMG THANK YOU
Author
@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
I realized this after I commented. BUT, I also figured out if you
[x] Minimize windows into application icon, it does what I've been looking for for ages :)