Managing menubar spacing using a configuration profile on macOS Tahoe
Home > Mac administration, macOS, Management Profiles > Managing menubar spacing using a con 2026-6-3 14:46:1 Author: derflounder.wordpress.com(查看原文) 阅读量:2 收藏

Home > Mac administration, macOS, Management Profiles > Managing menubar spacing using a configuration profile on macOS Tahoe

Managing menubar spacing using a configuration profile on macOS Tahoe

I noticed the following 9to5Mac article by Ben Lovejoy and was interested to see that there was a solution for menubar spacing which could be applied using the defaults command line tool.:

https://9to5mac.com/2026/05/22/how-to-stop-menu-bar-items-being-hidden-behind-the-macbook-pro-notch/

From the article, the following commands can be used to set menubar spacing to an integer value of 8 (half the default spacing of 16):


/usr/bin/defaults -currentHost write -globalDomain NSStatusItemSpacing -int 8
/usr/bin/defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 8

To revert back to the default spacing of 16:


/usr/bin/defaults -currentHost delete -globalDomain NSStatusItemSpacing
/usr/bin/defaults -currentHost delete -globalDomain NSStatusItemSelectionPadding

Note: I needed to log out and log back in to see the menubar spacing changes.

These defaults commands are setting user-level global preferences, which are manageable via a configuration profile. Since this is the case, I decided to see if that meant menubar spacing is manageable via a profile. It is. For more details, please see below the jump.

The following profile matches the behavior of the defaults commands referenced earlier, where menubar spacing is set to an integer value of 8 (half the default spacing of 16):

Before profile installation (macOS is using default menubar spacing of 16):

After profile installation (menubar spacing is set to an integer value of 8, half the default spacing):

As with the defaults commands discussed earlier, I needed to log out and log back in to see the menubar spacing changes applied by the profile.


文章来源: https://derflounder.wordpress.com/2026/06/03/managing-menubar-spacing-using-a-configuration-profile-on-macos-tahoe/
如有侵权请联系:admin#unsafe.sh