# https://github.com/mathiasbynens/dotfiles/blob/master/.macos # Disable Notification Center and remove the menu bar icon launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist 2> /dev/null # 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 # Trackpad: map bottom right corner to right-click defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2 defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1 defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true # Open Desktop defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/Desktop/" defaults write com.apple.finder ShowPathbar -bool true # Dock defaults write com.apple.dock tilesize -int 36 defaults write com.apple.dock show-process-indicators -bool true defaults write com.apple.dock minimize-to-application -bool true defaults write com.apple.dock show-recents -bool false # Terminal utf-8 defaults write com.apple.terminal StringEncodings -array 4 # Left corner to screensaver defaults write com.apple.dock wvous-bl-corner -int 5 # Avoid create DS_Store to USB defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true