diff options
-rwxr-xr-x | .osx | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -28,10 +28,12 @@ sudo nvram SystemAudioVolume=" " defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false # Menu bar: hide the Time Machine, Volume, User, and Bluetooth icons -defaults write ~/Library/Preferences/ByHost/com.apple.systemuiserver.* dontAutoLoad -array \ - "/System/Library/CoreServices/Menu Extras/TimeMachine.menu" \ - "/System/Library/CoreServices/Menu Extras/Volume.menu" \ - "/System/Library/CoreServices/Menu Extras/User.menu" +for domain in ~/Library/Preferences/ByHost/com.apple.systemuiserver.*; do + defaults write "${domain}" dontAutoLoad -array \ + "/System/Library/CoreServices/Menu Extras/TimeMachine.menu" \ + "/System/Library/CoreServices/Menu Extras/Volume.menu" \ + "/System/Library/CoreServices/Menu Extras/User.menu" +done defaults write com.apple.systemuiserver menuExtras -array \ "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" \ "/System/Library/CoreServices/Menu Extras/AirPort.menu" \ |