macos-defaults icon indicating copy to clipboard operation
macos-defaults copied to clipboard

Adjust menubar icon space padding

Open 0xRake opened this issue 7 months ago • 0 comments

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:


  1. Modify parameters
# modification 

defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 4
defaults -currentHost write -globalDomain NSStatusItemSpacing -int 4
  1. Reset to default
# reset to default

defaults -currentHost delete -globalDomain NSStatusItemSelectionPadding
defaults -currentHost delete -globalDomain NSStatusItemSpacing

0xRake avatar Jul 21 '24 17:07 0xRake