mathiasbynens / dotfiles

:wrench: .files, including ~/.macos — sensible hacker defaults for macOS
https://mths.be/dotfiles
MIT License
30.01k stars 8.74k forks source link

.macos: Try to activate 3-finger feature #758

Open kud opened 7 years ago

kud commented 7 years ago
# Trackpad: enable dragging with 3 fingers # not totally efficient yet
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 2
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 2
defaults write com.apple.AppleMultitouchTrackpad Dragging -bool false
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging -bool false
defaults write com.apple.AppleMultitouchTrackpad DragLock -bool false
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock -bool false
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool true
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool true

I'm near the end of the command but it doesn't fully work. Any idea?

adrw commented 7 years ago

The following two lines worked well for me:

# Enable 3-finger drag. (Moving with 3 fingers in any window "chrome" moves the window.)
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool true
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool true
yochem commented 5 years ago

@adrw That doesn't seem to work for me (Mojave 10.14.2). Do you know how to get this in Mojave?

tshu-w commented 5 years ago

@yochem try this following two lines?

# Trackpad: use three finger tap to Look up & data detectors
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerTapGesture -int 2
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerTapGesture -int 2
yochem commented 5 years ago

@Voleking That works for me for the three finger tap gesture! Thanks. But I thought this issue was about dragging windows with three fingers. Enable it without defaults: System Preferences > Accessibility > Mouse & Trackpad > Trackpad options > Enable dragging > three finger drag. Example:

Example

yochem commented 5 years ago

Oh, that doesn't seem to work either for three finger tap...