diff options
author | Manpreet Singh <junkblocker@yahoo.com> | 2014-01-07 18:08:33 -0800 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2014-01-10 12:11:49 +0100 |
commit | d2ca315de28315ae094c55ff77dcdad8337b2d9c (patch) | |
tree | 99d234807bf134dd46863f77abae06fa9299726b | |
parent | d8ac2c9544eb491acb5618e5247ec58a7d269504 (diff) | |
download | dotfiles-d2ca315de28315ae094c55ff77dcdad8337b2d9c.tar.gz dotfiles-d2ca315de28315ae094c55ff77dcdad8337b2d9c.tar.bz2 dotfiles-d2ca315de28315ae094c55ff77dcdad8337b2d9c.zip |
.osx: Support multiple `systemuiserver` pref files
Closes #319.
-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" \ |