|
# OS X settings |
|
# ----------------------------------------------------------------------------- |
|
|
|
# Ask for the administrator password upfront |
|
sudo -v |
|
|
|
# General UI/UX |
|
# ------------- |
|
|
|
# Disable the sound effects on boot |
|
sudo nvram SystemAudioVolume=" " |
|
|
|
# Menu bar: disable transparency |
|
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false |
|
|
|
# Always show scrollbars |
|
defaults write NSGlobalDomain AppleShowScrollBars -string "Automatic" |
|
# Possible values: `WhenScrolling`, `Automatic` and `Always` |
|
|
|
# Disable opening and closing window animations |
|
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false |
|
|
|
# Expand save panel by default |
|
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 |
|
|
|
# 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 |
|
|
|
# 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 |
|
|
|
# Disable smart quotes as they’re annoying when typing code |
|
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false |
|
|
|
# Disable smart dashes as they’re annoying when typing code |
|
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false |
|
|
|
# disable dashboard |
|
defaults write com.apple.dashboard mcx-disabled -boolean YES |
|
|
|
|
|
# SSD-specific tweaks |
|
# ------------------- |
|
|
|
# Disable hibernation (speeds up entering sleep mode) |
|
# sudo pmset -a hibernatemode 0 |
|
|
|
# Trackpad, mouse, keyboard, Bluetooth accessories, and input |
|
# ----------------------------------------------------------- |
|
|
|
# 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 |
|
|
|
# Automatically illuminate built-in MacBook keyboard in low light |
|
defaults write com.apple.BezelServices kDim -bool true |
|
# Turn off keyboard illumination when computer is not used for 5 minutes |
|
defaults write com.apple.BezelServices kDimTime -int 300 |
|
|
|
# Stop iTunes from responding to the keyboard media keys |
|
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist 2> /dev/null |
|
|
|
# Screen |
|
# ------ |
|
|
|
# Require password immediately after sleep or screen saver begins |
|
defaults write com.apple.screensaver askForPassword -int 1 |
|
defaults write com.apple.screensaver askForPasswordDelay -int 0 |
|
|
|
# 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" |
|
|
|
# Enable HiDPI display modes (requires restart) |
|
# sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool true |