Created
February 20, 2026 00:03
-
-
Save lantrix/975fa6d238e4f9da0a60163ea1164c4e to your computer and use it in GitHub Desktop.
Mac Menubar Spacing
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
| # Display current | |
| defaults -currentHost read -globalDomain NSStatusItemSpacing | |
| # Function to set | |
| adjustMenuItemSpacing() { | |
| if [ $# -lt 1 ]; then | |
| echo "Usage: $funcstack[1] <spacing>"; | |
| return; | |
| fi; | |
| defaults -currentHost write -globalDomain NSStatusItemSpacing -int "$1"; | |
| } | |
| # Set and Display | |
| adjustMenuItemSpacing 3 | |
| defaults -currentHost read -globalDomain NSStatusItemSpacing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment