macos-defaults
macos-defaults copied to clipboard
Menu Bar autohiding
- [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
defaultscommand 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 truedefaults 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)
I'm unsure how to apply it tho... sudo killall -KILL SystemUIServer might kinda work?
Thanks for sharing this - I too am unsure how to apply this programmatically, but the setting took affect after logging out and back in.
Isn't the menu bar tied to the Dock? For that it'd be:
killall Dock
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