在我的菜单栏中,我想隐藏 时光机器,体积,电池,用户,钟和展示只是蓝牙, 和飞机场。
我尝试使用sh
脚本来定制它:
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/Battery.menu" \
"/System/Library/CoreServices/Menu Extras/User.menu" \
"/System/Library/CoreServices/Menu Extras/Clock.menu"
done
defaults write com.apple.systemuiserver menuExtras -array \
"/System/Library/CoreServices/Menu Extras/Bluetooth.menu" \
"/System/Library/CoreServices/Menu Extras/AirPort.menu"
不幸的是,我无法让它工作。显然killall SystemUIServer
,我注销了,重新启动了……没有运气。我遗漏了什么吗?