@ -27,8 +27,8 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Menu bar: hide 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 "NO"
# defaults write com.apple.menuextra.battery ShowPercent -string "NO"
# defaults write com.apple.menuextra.battery ShowTime -string "NO"
# 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"
@ -38,7 +38,7 @@ defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreS
# Disable smooth scrolling
# (Uncomment if you’ re on an older Mac that messes up the animation)
# defaults write NSGlobalDomain NSScrollAnimationEnabled -bool false
defaults write NSGlobalDomain NSScrollAnimationEnabled -bool false
# Disable opening and closing window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
@ -47,19 +47,19 @@ defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
# Expand save panel by default
# defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Expand print panel by default
#defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
# Save to disk (not to iCloud) by default
# defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# Automatically quit printer app once the print jobs complete
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
# Disable the “Are you sure you want to open this application?” dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false
# defaults write com.apple.LaunchServices LSQuarantine -bool false
# Display ASCII control characters using caret notation in standard text views
# Try e.g. `cd /tmp; unidecode "\x{0000}" > cc.txt; open -e cc.txt`
@ -84,7 +84,7 @@ defaults write com.apple.CrashReporter DialogType -string "none"
# Reveal IP address, hostname, OS version, etc. when clicking the clock
# in the login window
# sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
# Restart automatically if the computer freezes
#systemsetup -setrestartfreeze on
@ -96,10 +96,10 @@ defaults write com.apple.CrashReporter DialogType -string "none"
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
# Appearance: Graphite
defaults write -g AppleAquaColorVariant -int 6
# defaults write -g AppleAquaColorVariant -int 6
# Highlight color: Blue
defaults write -g AppleHighlightColor -string '0.709800 0.835300 1.000000'
# defaults write -g AppleHighlightColor -string '0.709800 0.835300 1.000000'
###############################################################################
# Trackpad, mouse, keyboard, Bluetooth accessories, and input #
@ -150,23 +150,23 @@ defaults write com.apple.universalaccess closeViewZoomFollowsFocus -bool true
#defaults write NSGlobalDomain KeyRepeat -int 0
# Don't illuminate built-in MacBook keyboard in low light
defaults write com.apple.BezelServices kDim -bool false
# defaults write com.apple.BezelServices kDim -bool false
# Turn off keyboard illumination when computer is not used for 5 minutes
defaults write com.apple.BezelServices kDimTime -int 300
# Set language and text formats
# Note: if you’ re in the US, replace `EUR` with `USD`, `Centimeters` with
# `Inches`, and `true` with `false`.
defaults write NSGlobalDomain AppleLanguages -array "en" " ru "
defaults write NSGlobalDomain AppleLocale -string "ru_RU @currency=RUR"
defaults write NSGlobalDomain AppleLanguages -array "en" " nl "
# defaults write NSGlobalDomain AppleLocale -string "nl_NL @currency=RUR"
defaults write NSGlobalDomain AppleMeasurementUnits -string "Centimeters"
defaults write NSGlobalDomain AppleMetricUnits -bool true
# Set the timezone; see `systemsetup -listtimezones` for other values
systemsetup -settimezone "Europe/ Moscow " > /dev/null
systemsetup -settimezone "Europe/ Amsterdam " > /dev/null
# Disable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
###############################################################################
# Screen #
@ -189,14 +189,14 @@ defaults write com.apple.screencapture type -string "png"
defaults write NSGlobalDomain AppleFontSmoothing -int 2
# Enable HiDPI display modes (requires restart)
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool true
# sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool true
###############################################################################
# Finder #
###############################################################################
# Finder: allow quitting via ⌘ + Q; doing so will also hide desktop icons
defaults write com.apple.finder QuitMenuItem -bool true
# defaults write com.apple.finder QuitMenuItem -bool true
# Finder: disable window animations and Get Info animations
defaults write com.apple.finder DisableAllAnimations -bool true
@ -214,7 +214,7 @@ defaults write com.apple.finder AppleShowAllFiles -bool true
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Finder: hide status bar
defaults write com.apple.finder ShowStatusBar -bool false
# defaults write com.apple.finder ShowStatusBar -bool false
# Finder: show path bar
defaults write com.apple.finder ShowPathbar -boolean true
@ -223,7 +223,7 @@ defaults write com.apple.finder ShowPathbar -boolean true
defaults write com.apple.finder QLEnableTextSelection -bool true
# Display full POSIX path as Finder window title
# defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
# When performing a search, search the current folder by default
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
@ -240,9 +240,9 @@ defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
# Automatically open a new Finder window when a volume is mounted
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
# defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
# defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
# defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
# Show item info below icons on the desktop and in other icon views
#/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
@ -250,9 +250,9 @@ defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
#/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
# Enable snap-to-grid for icons on the desktop and in other icon views
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
# /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
# /usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
# /usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
# Increase grid spacing for icons on the desktop and in other icon views
#/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist
@ -269,7 +269,7 @@ defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
# Disable the warning before emptying the Trash
# defaults write com.apple.finder WarnOnEmptyTrash -bool false
defaults write com.apple.finder WarnOnEmptyTrash -bool false
# Empty Trash securely by default
defaults write com.apple.finder EmptyTrashSecurely -bool true
@ -284,9 +284,9 @@ defaults write com.apple.finder FinderSounds -boolean false
chflags nohidden ~/Library
# Remove Dropbox’ s green checkmark icons in Finder
file = /Applications/Dropbox.app/Contents/Resources/check.icns
[ -e " $file " ] && mv -f " $file " " $file .bak "
unset file
#file= /Applications/Dropbox.app/Contents/Resources/check.icns
#[ -e "$file" ] && mv -f "$file" "$file.bak "
#unset file
###############################################################################
# Dock & hot corners #
@ -296,13 +296,13 @@ unset file
#defaults write com.apple.dock mouse-over-hilte-stack -bool true
# Set the icon size of Dock items to 60 pixels
defaults write com.apple.dock tilesize -int 60
# defaults write com.apple.dock tilesize -int 60
# Enable spring loading for all Dock items
defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
# defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
# Don't show indicator lights for open applications in the Dock
defaults write com.apple.dock show-process-indicators -bool false
# defaults write com.apple.dock show-process-indicators -bool false
# Don’ t animate opening applications from the Dock
defaults write com.apple.dock launchanim -bool false
@ -314,28 +314,28 @@ defaults write com.apple.dock expose-animation-duration -float 0.1
defaults write com.apple.dock expose-group-by-app -bool true
# Don’ t show Dashboard as a Space
defaults write com.apple.dock dashboard-in-overlay -bool true
# defaults write com.apple.dock dashboard-in-overlay -bool true
# Enable the 2D Dock
defaults write com.apple.dock no-glass -bool true
# defaults write com.apple.dock no-glass -bool true
# Automatically hide and show the Dock
defaults write com.apple.dock autohide -bool true
# Remove the Delay when Showing and Hiding the Dock
defaults write com.apple.dock autohide-delay -float 0
# defaults write com.apple.dock autohide-delay -float 0
# Remove the animation when hiding/showing the Dock
defaults write com.apple.dock autohide-time-modifier -float 0
# Make Dock icons of hidden applications translucent
# defaults write com.apple.dock showhidden -bool true
defaults write com.apple.dock showhidden -bool true
# Disable icon bouncing (looks like it don't work)
defaults write com.apple.dock no-bouncing -bool true
# Enable Space switching on Command-Tab
defaults write com.apple.dock workspaces-auto-swoosh -bool true
# defaults write com.apple.dock workspaces-auto-swoosh -bool true
# Show only active applications
defaults write com.apple.dock static-only -bool true
@ -373,12 +373,12 @@ defaults write -g CheckSpellingWhileTyping -boolean true
defaults write -g WebContinuousSpellCheckingEnabled -boolean true
# Spotlight menu keyboard shortcut: none
/usr/libexec/PlistBuddy " $HOME /Library/Preferences/com.apple.symbolichotkeys.plist " -c 'Delete AppleSymbolicHotKeys:64' > /dev/null 2> & 1
/usr/libexec/PlistBuddy " $HOME /Library/Preferences/com.apple.symbolichotkeys.plist " -c 'Add AppleSymbolicHotKeys:64:enabled bool false'
# /usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Delete AppleSymbolicHotKeys:64' > /dev/null 2>&1
# /usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Add AppleSymbolicHotKeys:64:enabled bool false'
# Spotlight window keyboard shortcut: none
/usr/libexec/PlistBuddy " $HOME /Library/Preferences/com.apple.symbolichotkeys.plist " -c 'Delete AppleSymbolicHotKeys:65' > /dev/null 2> & 1
/usr/libexec/PlistBuddy " $HOME /Library/Preferences/com.apple.symbolichotkeys.plist " -c 'Add AppleSymbolicHotKeys:65:enabled bool false'
# /usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Delete AppleSymbolicHotKeys:65' > /dev/null 2>&1
# /usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Add AppleSymbolicHotKeys:65:enabled bool false'
# Remove Spotlight from menu bar
sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
@ -406,7 +406,7 @@ defaults write com.apple.Safari ShowFavoritesBar -bool false
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
# Enable Safari’ s debug menu
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
# defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
# Make Safari’ s search banners default to Contains instead of Starts With
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
@ -430,25 +430,25 @@ defaults write com.apple.appstore WebKitDeveloperExtras -bool true
###############################################################################
# Disable the iTunes store link arrows
defaults write com.apple.iTunes show-store-link-arrows -bool false
# defaults write com.apple.iTunes show-store-link-arrows -bool false
# Disable the Genius sidebar in iTunes
defaults write com.apple.iTunes disableGeniusSidebar -bool true
# defaults write com.apple.iTunes disableGeniusSidebar -bool true
# Disable the Ping sidebar in iTunes
defaults write com.apple.iTunes disablePingSidebar -bool true
# defaults write com.apple.iTunes disablePingSidebar -bool true
# Disable all the other Ping stuff in iTunes
defaults write com.apple.iTunes disablePing -bool true
# defaults write com.apple.iTunes disablePing -bool true
# Disable radio stations in iTunes
defaults write com.apple.iTunes disableRadio -bool true
# defaults write com.apple.iTunes disableRadio -bool true
# Make ⌘ + F focus the search input in iTunes
# To use these commands in another language, browse iTunes’ s package contents,
# open `Contents/Resources/your-language.lproj/Localizable.strings`, and look
# for `kHiddenMenuItemTargetSearch`.
defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
# defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
###############################################################################
# Terminal #
@ -493,7 +493,7 @@ defaults write com.apple.mail DisableInlineAttachmentViewing -bool true
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
# Disable local Time Machine backups
hash tmutil & > /dev/null && sudo tmutil disablelocal
#hash tmutil &> /dev/null && sudo tmutil disablelocal
###############################################################################
# Address Book, Dashboard, iCal, TextEdit, and Disk Utility #
@ -506,7 +506,7 @@ hash tmutil &> /dev/null && sudo tmutil disablelocal
#defaults write com.apple.dashboard devmode -bool true
# Disable Dashboard
defaults write com.apple.dashboard mcx-disabled -bool true
# defaults write com.apple.dashboard mcx-disabled -bool true
# Enable the debug menu in iCal (pre-10.8)
#defaults write com.apple.iCal IncludeDebugMenu -bool true
@ -529,14 +529,6 @@ defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4
defaults write com.google.Chrome ExtensionInstallSources -array "https://*.github.com/*" "http://userscripts.org/*"
defaults write com.google.Chrome.canary ExtensionInstallSources -array "https://*.github.com/*" "http://userscripts.org/*"
###############################################################################
# Sublime Text 2 #
###############################################################################
# Link Sublime Text 2 command line
[ ! -d ~/bin ] && mkdir ~/bin
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
###############################################################################
# Power #
###############################################################################