Skip to content

Instantly share code, notes, and snippets.

@nathansmith
Last active January 6, 2019 21:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathansmith/340dc056aaf7e82952908f1cb81ac654 to your computer and use it in GitHub Desktop.
Save nathansmith/340dc056aaf7e82952908f1cb81ac654 to your computer and use it in GitHub Desktop.
Command line snippet to lock icons at "48" size.

I wanted my Mac's dock icons to be a consistent size, not subject to change and not "off" by a pixel or two, thereby making them look less crisp.


So, I pieced this together after reading these two articles…

https://www.macobserver.com/tmo/article/how-to-lock-the-dock-size-position-and-contents-in-os-x

https://www.intego.com/mac-security-blog/unlock-the-macos-docks-hidden-secrets-in-terminal/


defaults write com.apple.dock tilesize -integer 48;

defaults write com.apple.dock size-immutable -bool yes;

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