From f2f01504e4d63fedaf9226214c0d7ad5ea1894b1 Mon Sep 17 00:00:00 2001 From: Kevin Suttle Date: Thu, 2 Jan 2014 10:19:13 -0500 Subject: [PATCH] Update to commit 6580532 of http://mths.be/dotfiles .osx --- .osx | 78 +++++++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 53 insertions(+), 25 deletions(-) diff --git a/.osx b/.osx index db200ad..7a2170b 100644 --- a/.osx +++ b/.osx @@ -29,10 +29,14 @@ 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" \ - "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" + "/System/Library/CoreServices/Menu Extras/TimeMachine.menu" \ + "/System/Library/CoreServices/Menu Extras/Volume.menu" \ + "/System/Library/CoreServices/Menu Extras/User.menu" +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" # Set highlight color to green defaults write NSGlobalDomain AppleHighlightColor -string "0.764700 0.976500 0.568600" @@ -319,6 +323,13 @@ chflags nohidden ~/Library file=/Applications/Dropbox.app/Contents/Resources/emblem-dropbox-uptodate.icns [ -e "${file}" ] && mv -f "${file}" "${file}.bak" +# Expand the following File Info panes: +# “General”, “Open with”, and “Sharing & Permissions” +defaults write com.apple.finder FXInfoPanesExpanded -dict \ + General -bool true \ + OpenWith -bool true \ + Privileges -bool true + ############################################################################### # Dock, Dashboard, and hot corners # ############################################################################### @@ -485,22 +496,22 @@ defaults write com.apple.mail SpellCheckingBehavior -string "NoSpellCheckingEnab sudo defaults write /.Spotlight-V100/VolumeConfiguration Exclusions -array "/Volumes" # Change indexing order and disable some file types defaults write com.apple.spotlight orderedItems -array \ - '{"enabled" = 1;"name" = "APPLICATIONS";}' \ - '{"enabled" = 1;"name" = "SYSTEM_PREFS";}' \ - '{"enabled" = 1;"name" = "DIRECTORIES";}' \ - '{"enabled" = 1;"name" = "PDF";}' \ - '{"enabled" = 1;"name" = "FONTS";}' \ - '{"enabled" = 0;"name" = "DOCUMENTS";}' \ - '{"enabled" = 0;"name" = "MESSAGES";}' \ - '{"enabled" = 0;"name" = "CONTACT";}' \ - '{"enabled" = 0;"name" = "EVENT_TODO";}' \ - '{"enabled" = 0;"name" = "IMAGES";}' \ - '{"enabled" = 0;"name" = "BOOKMARKS";}' \ - '{"enabled" = 0;"name" = "MUSIC";}' \ - '{"enabled" = 0;"name" = "MOVIES";}' \ - '{"enabled" = 0;"name" = "PRESENTATIONS";}' \ - '{"enabled" = 0;"name" = "SPREADSHEETS";}' \ - '{"enabled" = 0;"name" = "SOURCE";}' + '{"enabled" = 1;"name" = "APPLICATIONS";}' \ + '{"enabled" = 1;"name" = "SYSTEM_PREFS";}' \ + '{"enabled" = 1;"name" = "DIRECTORIES";}' \ + '{"enabled" = 1;"name" = "PDF";}' \ + '{"enabled" = 1;"name" = "FONTS";}' \ + '{"enabled" = 0;"name" = "DOCUMENTS";}' \ + '{"enabled" = 0;"name" = "MESSAGES";}' \ + '{"enabled" = 0;"name" = "CONTACT";}' \ + '{"enabled" = 0;"name" = "EVENT_TODO";}' \ + '{"enabled" = 0;"name" = "IMAGES";}' \ + '{"enabled" = 0;"name" = "BOOKMARKS";}' \ + '{"enabled" = 0;"name" = "MUSIC";}' \ + '{"enabled" = 0;"name" = "MOVIES";}' \ + '{"enabled" = 0;"name" = "PRESENTATIONS";}' \ + '{"enabled" = 0;"name" = "SPREADSHEETS";}' \ + '{"enabled" = 0;"name" = "SOURCE";}' # Load new settings before rebuilding the index killall mds > /dev/null 2>&1 # Make sure indexing is enabled for the main volume @@ -542,6 +553,23 @@ defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true # Disable local Time Machine backups hash tmutil &> /dev/null && sudo tmutil disablelocal +############################################################################### +# Activity Monitor # +############################################################################### + +# Show the main window when launching Activity Monitor +defaults write com.apple.ActivityMonitor OpenMainWindow -bool true + +# Visualize CPU usage in the Activity Monitor Dock icon +defaults write com.apple.ActivityMonitor IconType -int 5 + +# Show all processes in Activity Monitor +defaults write com.apple.ActivityMonitor ShowCategory -int 0 + +# Sort Activity Monitor results by CPU usage +defaults write com.apple.ActivityMonitor SortColumn -string "CPUUsage" +defaults write com.apple.ActivityMonitor SortDirection -int 0 + ############################################################################### # Address Book, Dashboard, iCal, TextEdit, and Disk Utility # ############################################################################### @@ -668,9 +696,9 @@ defaults write com.twitter.twitter-mac HideInBackground -bool true # Kill affected applications # ############################################################################### -for app in "Address Book" "Calendar" "Contacts" "Dock" "Finder" "Mail" \ - "Messages" "Safari" "SizeUp" "SystemUIServer" "Terminal" "Transmission" \ - "Twitter" "iCal"; do - killall "${app}" > /dev/null 2>&1 +for app in "Activity Monitor" "Address Book" "Calendar" "Contacts" "Dock" \ + "Finder" "Mail" "Messages" "Safari" "SizeUp" "SystemUIServer" "Terminal" \ + "Transmission" "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." \ No newline at end of file +echo "Done. Note that some of these changes require a logout/restart to take effect."