Skip to content

Instantly share code, notes, and snippets.

@olssonm
Last active June 8, 2024 18:02
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
@marcosatanaka
Copy link

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

Copy link

ghost commented May 12, 2021

update for 2020:

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

how do I undo this

@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

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