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

Menu Bar autohiding

Open shelbyKiraM opened this issue 3 years ago • 4 comments

  • [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
  • Folder:
    • Menu Bar
  • Command:
    • AppleMenuBarVisibleInFullscreen = 1;
    • "_HIHideMenuBar" = 1;
    • defaults write NSGlobalDomain _HIHideMenuBar -bool true
    • defaults write NSGlobalDomain AppleMenuBarVisibleInFullscreen -bool true
  • Argument type (if applicable):
    • bool
  • Examples:
    • You can find the way to set this in System Prefs, Dock & Menu Bar (I'm beta testing Ventura so System Settings is kinda different but it existed in prior versions of Mac OS X, now it's Desktop & Dock)

shelbyKiraM avatar Oct 22 '22 23:10 shelbyKiraM

I'm unsure how to apply it tho... sudo killall -KILL SystemUIServer might kinda work?

shelbyKiraM avatar Oct 23 '22 00:10 shelbyKiraM

Thanks for sharing this - I too am unsure how to apply this programmatically, but the setting took affect after logging out and back in.

cmpadden avatar Jun 12 '24 18:06 cmpadden

Isn't the menu bar tied to the Dock? For that it'd be:

killall Dock

Swiss-Mac-User avatar Jun 12 '24 18:06 Swiss-Mac-User

Has anyone found a good way to apply these commands? I found that sudo killall -KILL WindowServer technically works, but that just triggers a logout. It would be cool to find a way to refresh this without a logout.

Edit: I'll also add what hasn't worked for me: sudo killall -KILL Finder sudo killall -KILL Dock sudo killall -KILL SystemUIServer

AlexHadfield avatar Jul 17 '24 01:07 AlexHadfield