Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
79 lines (54 sloc) 2.96 KB
#
# from: https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# 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"
# Disable Resume system-wide
#defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
# Expand save panel by default
#defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Expand print panel by default
#defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
# Finder: allow quitting via ⌘ + Q; doing so will also hide desktop icons
defaults delete com.apple.finder QuitMenuItem
defaults write com.apple.finder QuitMenuItem -bool true
# Finder: show status bar
defaults write com.apple.finder ShowStatusBar -bool true
# Finder: allow text selection in Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool true
# Display full POSIX path as Finder window title
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
# Trackpad: enable tap to click for this user and for the login screen
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# Enable full keyboard access for all controls
# (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Disable press-and-hold for keys in favor of key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
# Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 0
# Enable subpixel font rendering on non-Apple LCDs
defaults write NSGlobalDomain AppleFontSmoothing -int 2
# Disable the warning before emptying the Trash
defaults write com.apple.finder WarnOnEmptyTrash -bool false
# Don’t show Dashboard as a Space
defaults write com.apple.dock "dashboard-in-overlay" -bool true
# Completely disable the useless Dashboard
defaults write com.apple.dashboard mcx-disabled -bool true
# Save screenshots to the desktop
# defaults write com.apple.screencapture location -string "$HOME/Desktop"
# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
# defaults write com.apple.screencapture type -string "png"
# Disable shadow in screenshots
# defaults write com.apple.screencapture disable-shadow -bool true
killall SystemUIServer
killall Finder
killall Dock
# Disable the MacVim contextual menu in order to use it for taglist navigation
defaults write org.vim.MacVim MMTranslateCtrlClick 0
# Enable at (man atrun)
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist
# Restore Autoplay to QuickTime X
defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1