Permalink
Browse files

.osx: Hide the useless Time Machine and Volume icons

Fun fact — this is what the OS X Mountain Lion menu bar looks like
with all the menu extras (/System/Library/CoreServices/Menu Extras)
enabled: http://i.imgur.com/DHTuw.png
  • Loading branch information...
1 parent 1dec7d8 commit 4e31acd0d4d33088c303c3dd1c43acd35bdf5793 @mathiasbynens committed Jul 26, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 .osx
View
3 .osx
@@ -11,6 +11,9 @@ defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"
+# Menu bar: hide the useless Time Machine and Volume icons
+defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" "/System/Library/CoreServices/Menu Extras/AirPort.menu" "/System/Library/CoreServices/Menu Extras/Battery.menu" "/System/Library/CoreServices/Menu Extras/Clock.menu"
+
# Always show scrollbars
defaults write NSGlobalDomain AppleShowScrollBars -string "Always"

5 comments on commit 4e31acd

Owner

mathiasbynens commented on 4e31acd Jul 26, 2012

In case you want to reproduce the screenshot in the commit message:

defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreServices/Menu Extras/AirPort.menu" "/System/Library/CoreServices/Menu Extras/Battery.menu" "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" "/System/Library/CoreServices/Menu Extras/Clock.menu" "/System/Library/CoreServices/Menu Extras/Displays.menu" "/System/Library/CoreServices/Menu Extras/Eject.menu" "/System/Library/CoreServices/Menu Extras/ExpressCard.menu" "/System/Library/CoreServices/Menu Extras/Fax.menu" "/System/Library/CoreServices/Menu Extras/HomeSync.menu" "/System/Library/CoreServices/Menu Extras/Ink.menu" "/System/Library/CoreServices/Menu Extras/IrDA.menu" "/System/Library/CoreServices/Menu Extras/PPP.menu" "/System/Library/CoreServices/Menu Extras/PPPoE.menu" "/System/Library/CoreServices/Menu Extras/RemoteDesktop.menu" "/System/Library/CoreServices/Menu Extras/Script Menu.menu" "/System/Library/CoreServices/Menu Extras/Sync.menu" "/System/Library/CoreServices/Menu Extras/TextInput.menu" "/System/Library/CoreServices/Menu Extras/TimeMachine.menu" "/System/Library/CoreServices/Menu Extras/UniversalAccess.menu" "/System/Library/CoreServices/Menu Extras/User.menu" "/System/Library/CoreServices/Menu Extras/VPN.menu" "/System/Library/CoreServices/Menu Extras/Volume.menu" "/System/Library/CoreServices/Menu Extras/WWAN.menu" "/System/Library/CoreServices/Menu Extras/iChat.menu"; killall SystemUIServer

If you hold cmd you can drag icons off the menu bar. Works with all native icons (volume/wifi/user etc)

Owner

mathiasbynens replied Jul 26, 2012

Yep, it works with all of these icons — but not for Notification Center, for example.

How do I undo this ?

Owner

mathiasbynens replied Jul 26, 2012

@peritus Just use the command listed in the .osx file:

defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" "/System/Library/CoreServices/Menu Extras/AirPort.menu" "/System/Library/CoreServices/Menu Extras/Battery.menu" "/System/Library/CoreServices/Menu Extras/Clock.menu"

Alternatively, you could remove the icons you don’t need one by one, using the method @chrisrowe explained.

Please sign in to comment.