diff --git a/bootstrap.sh b/bootstrap.sh index 1bc8ae7..da80f5a 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -40,7 +40,7 @@ if [ -f ~/.zshrc ]; then cat ~/.zshrc mv ~/.zshrc ~/zshrc.bak fi -ln -s ./.zshrc ~/.zshrc +ln -s $PWD/.zshrc $HOME/.zshrc echo "Setup applications" echo "- fzf" diff --git a/init_mac.sh b/init_mac.sh index da105d2..ea8d901 100644 --- a/init_mac.sh +++ b/init_mac.sh @@ -29,3 +29,29 @@ 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 +