-
Notifications
You must be signed in to change notification settings - Fork 0
/
trackpad.sh
executable file
·22 lines (17 loc) · 1.21 KB
/
trackpad.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n Trackpad\n\n"
execute "defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool false && \
defaults write com.apple.AppleMultitouchTrackpad Clicking -int 0 && \
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 0 && \
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 0" \
"Disable 'Tap to click'"
execute "defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true && \
defaults write com.apple.AppleMultitouchTrackpad TrackpadRightClick -int 1 && \
defaults -currentHost write -g com.apple.trackpad.enableSecondaryClick -bool true && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 0 && \
defaults write com.apple.AppleMultitouchTrackpad TrackpadCornerSecondaryClick -int 0 && \
defaults -currentHost write -g com.apple.trackpad.trackpadCornerClickBehavior -int 0" \
"Map 'click or tap with two fingers' to the secondary click"