macos-defaults
macos-defaults copied to clipboard
Add trackpad tap to click behaviour
- [x] I made sure this command is not in the commands list
- [x] I searched and didn't find this command in the listed issues
- [x] I know this
defaults
command exists - [x] I know this command works on macOS current version
- [ ] I know this command is deprecated on macOS current version
- Folder: Trackpad (NEW)
- Command:
defaults -currentHost read NSGlobalDomain com.apple.mouse.tapBehavior
- Argument type (if applicable):
bool
- Examples:
-
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -bool true
-
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -bool false
-
To add to this: https://github.com/yannbertrand/macos-defaults/issues/270 can be added within the same folder to add three finger dragging for windows
Hi! Can I add this? I was just going to propose it.
A reason to use these commands instead of changing it in System Preferences is sometimes without a battery installed it just says searching for Bluetooth trackpads. [1][2][3][4][5][6]
Is there a way to have a "uses cases" section? It would be good way for other people searching for a solution to find the website.
This seems to have changed with Ventura since the domain for trackpad settings is now "com.apple.AppleMultitouchTrackpad" and the relevant keys are:
- "Clicking"
- 1 enables tap to click (default is 0 for all).
- UI setting is in Trackpad > Point & Click. Turning this off in the UI will reset Dragging and DragLock to 0
- "Dragging"
- 1 enables tap to drag.
- UI setting is not in Trackpad controls but instead at Accessibility > Pointer Control > Trackpad Options
- "DragLock"
- 1 enabled drag lock when using tap to drag.
- UI setting is next to Dragging in Accessibility > Pointer Control > Trackpad Options
- (the dropdown also has an option that sets "TrackpadThreeFingerDrag")
However, changing any of these from the command line with defaults
seemed to have no affect. It might require a restart for the changes to get picked up when not setting them through System Preferences/Settings.