I’m looking for a command (
defaults write …) to enable right-click by tapping the bottom right Trackpad corner.
This can be enabled as follows: System Preferences → Trackpad → Point & Click → enable Secondary click and select “Click in bottom right corner”.
However, I’m looking for a way to do this programmatically.
To find out which settings to modify using the
defaults command, I usually do something like this…
- Disable the desired setting in System Preferences and close the preference pane.
cd /tmp defaults read > before
Then, change the setting in System Preferences and close the preference pane. 4.
defaults read > after diff before after
A long time ago (I think it was still on Snow Leopard) this brought up the following solution:
# Map bottom right Trackpad corner to right-click defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2 defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true
However, it seems like there’s more to it than just these two settings. I’ve tried disabling the setting in System Preferences, then running these commands, then logging out and back in again, but it had no effect.