Git Product home page Git Product logo

Comments (6)

mathiasbynens avatar mathiasbynens commented on May 10, 2024

FTR, this is about the following setting:

Sadly, all I could find was this:

# Swipe between pages
defaults write NSGlobalDomain AppleEnableSwipeNavigateWithScrolls -bool false

(This is the setting I currently use, although it’s not included in .osx — I think it’s the default.)

So enabling/disabling the swiping is easy enough; I just wish we could figure out where the different values (“two fingers”, “three fingers”, or “two or three fingers”) are stored. Perhaps @lri knows?

from dotfiles.

 avatar commented on May 10, 2024

Changing it in System Preferences seems to change the TrackpadThreeFingerHorizSwipeGesture and TrackpadThreeFingerVertSwipeGesture keys in ~/Library/Preferences/com.apple.driver.AppleBluetoothMultitouch.trackpad.plist. But when I tried editing the keys directly, it didn't change the behavior of my MacBook Air's trackpad or the settings selected in System Preferences. (I don't have a Magic Trackpad to test it with.)

from dotfiles.

mathiasbynens avatar mathiasbynens commented on May 10, 2024

Thanks, @lri. May I ask what your your technique is for finding the affected plist file? I usually try #5 (comment) but in this case that didn’t help.

As with all Trackpad settings, these seem to be mirrored in two places:

# Enable swipe between pages
defaults write NSGlobalDomain AppleEnableSwipeNavigateWithScrolls -bool true
# MacBook Trackpad (built-in)
defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerHorizSwipeGesture -int 1
# Magic Trackpad
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture -int 1

from dotfiles.

 avatar commented on May 10, 2024

defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerHorizSwipeGesture -int 1 (and logging out and back in) didn't seem to change the behavior at least on my MacBook Air.

I tried the diff trick first too and it didn't list the keys, but then I just piped the output of defaults read to grep. Now diffing does list them though, weird.

I also tried searching for potential preference keys with something like:

strings /System/Library/Frameworks/*.framework/Versions/Current/* /System/Library/Frameworks/*/Frameworks/*/Versions/Current/* 2> /dev/null | grep -iE '(swipe|gesture|finger)' | grep -E '^[a-zA-Z0-9_.-]{10,80}$' | sort | uniq > ~/Desktop/strings.txt`

from dotfiles.

mathiasbynens avatar mathiasbynens commented on May 10, 2024

I could swear those commands changed the System Preferences settings the other day when I was testing it. I didn’t even have to log out — just close and re-open System Preferences before/after running the commands.

I tried again after reading @lri’s latest comment and indeed, the commands don’t seem to have any effect now. Re-opening until someone figures out what’s up.

from dotfiles.

mathiasbynens avatar mathiasbynens commented on May 10, 2024

FWIW, the commands that are currently in .osx for this seem to have worked for my fresh Mountain Lion install. (Unless this setting is enabled by default in OS X 10.8, that is.)

from dotfiles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.