macos-defaults
macos-defaults copied to clipboard
Adjust menubar icon space padding
Template
- [x] I made sure this command is not in the commands list
- [x] I searched and didn't find this command in the listed issues
- [x] I know this
defaults
command exists - [x] I know this command works on macOS current version
- [ ] I know this command is deprecated on macOS current version
Description
Currently, macOS has a built-in "status-spacing"(or "whitespace") for applications that also have a top-menu icon. Users can tweak the spacing value within the top-menu. This is especially handy for mbpro users who are running multiple applications and are limited to the buit-in display - who's notch interferes with the top-menu icons.
Additional Parameters
-
Folder: MenuBar
-
Command:
# Adjust mbpro notch whitespace to accomodate more than 13 app in top menu
defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 4
defaults -currentHost write -globalDomain NSStatusItemSpacing -int 4
- Argument type: int
Examples:
- Modify parameters
# modification
defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 4
defaults -currentHost write -globalDomain NSStatusItemSpacing -int 4
- Reset to default
# reset to default
defaults -currentHost delete -globalDomain NSStatusItemSelectionPadding
defaults -currentHost delete -globalDomain NSStatusItemSpacing