Skip to content

Commit

Permalink
Make this reflect http://mths.be/osx exactly
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Suttle committed Dec 9, 2013
1 parent c9513e3 commit 1406eb9
Showing 1 changed file with 12 additions and 32 deletions.
44 changes: 12 additions & 32 deletions .osx
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,18 @@ sudo pmset -a standbydelay 86400
# Disable the sound effects on boot
sudo nvram SystemAudioVolume=" "

# Menu bar: keep transparency
# Menu bar: disable transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false

# Menu bar: switch to dark menu bar in full screen mode
defaults write -g NSFullScreenDarkMenu -bool true
# 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" \
"/System/Library/CoreServices/Menu Extras/Bluetooth.menu"

# Menu bar: show remaining battery time (on pre-10.8); hide percentage
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"

# Menu bar: Ensure clock is digital
defaults write com.apple.menuextra.clock IsAnalog -bool false
# Set highlight color to Graphite
defaults write NSGlobalDomain AppleHighlightColor -string "0.780400 0.815700 0.858800"

# Set UI Chrome Appearance to Graphite
defaults write NSGlobalDomain AppleAquaColorVariant -int 6
# Set highlight color to green
defaults write NSGlobalDomain AppleHighlightColor -string "0.764700 0.976500 0.568600"

# Set sidebar icon size to medium
defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 2
Expand Down Expand Up @@ -113,9 +105,6 @@ defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1

# Disable Notification Center and remove the menu bar icon
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist 2> /dev/null
## Re-enable
## sudo defaults write /System/Library/LaunchAgents/com.apple.notificationcenterui KeepAlive -bool true
## launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist 2> /dev/null

# Disable smart quotes as they’re annoying when typing code
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
Expand Down Expand Up @@ -657,7 +646,7 @@ defaults write org.m0k.transmission WarningLegal -bool false
# Disable smart quotes as it’s annoying for code tweets
defaults write com.twitter.twitter-mac AutomaticQuoteSubstitutionEnabled -bool false

# Show the app window when clicking the menu icon
# Show the app window when clicking the menu bar icon
defaults write com.twitter.twitter-mac MenuItemBehavior -int 1

# Enable the hidden ‘Develop’ menu
Expand All @@ -675,22 +664,13 @@ defaults write com.twitter.twitter-mac ShowFullNames -bool true
# Hide the app in the background if it’s not the front-most window
defaults write com.twitter.twitter-mac HideInBackground -bool true


###############################################################################
# iBooks #
###############################################################################

# Show debug menu in iBooks
defaults write com.apple.iBooksX BKShowDebugMenu -boolean true


###############################################################################
# Kill affected applications #
###############################################################################

for app in "Address Book" "Calendar" "Contacts" "Dock" "Finder" "Mail" \
"Messages" "Safari" "SizeUp" "SystemUIServer" "Terminal" "Transmission" \
"Twitter" "iCal" "iBooks"; do
"Twitter" "iCal"; do
killall "${app}" > /dev/null 2>&1
done
echo "Done. Note that some of these changes require a logout/restart to take effect."
echo "Done. Note that some of these changes require a logout/restart to take effect."

0 comments on commit 1406eb9

Please sign in to comment.