mirror of https://github.com/einverne/dotfiles.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
3.1 KiB
57 lines
3.1 KiB
# 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 |
|
|
|
# Show all hidden files |
|
defaults write com.apple.finder AppleShowAllFiles ture |
|
|
|
############################################################################### |
|
# 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 |
|
|
|
# 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 |
|
|
|
# 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 1 |
|
defaults write NSGlobalDomain InitialKeyRepeat -int 10 |
|
|
|
|