Skip to content

Instantly share code, notes, and snippets.

@refnode
Created April 9, 2019 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save refnode/d5d3befa34d433b73513e762bbe173b3 to your computer and use it in GitHub Desktop.
Save refnode/d5d3befa34d433b73513e762bbe173b3 to your computer and use it in GitHub Desktop.
macOS defaults
#!/bin/sh
defaults write com.apple.menuextra.battery ShowPercent -string YES
defaults write com.apple.systemuiserver menuExtras -array \
"/System/Library/CoreServices/Menu Extras/Clock.menu" \
"/System/Library/CoreServices/Menu Extras/Battery.menu" \
"/System/Library/CoreServices/Menu Extras/AirPort.menu" \
"/System/Library/CoreServices/Menu Extras/Bluetooth.menu" \
"/System/Library/CoreServices/Menu Extras/Displays.menu" \
"/System/Library/CoreServices/Menu Extras/Volume.menu"
killall SystemUIServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment