Comments (6)
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.
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.
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.
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.
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.
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)
- "Could not write domain com.apple.universalaccess; exiting" error in macOS Monterey HOT 6
- Calls to systemsetup in macos script return error message HOT 1
- .os issues HOT 2
- boot in recovery mode
- `.macos` changes in macOS Ventura HOT 2
- Are the macOS defaults sane for Ventura as well? HOT 2
- Arch Chip
- `gz()` is inefficient HOT 2
- Suggested improvements for `dataurl` HOT 8
- In Browser Fast Keyboard Repeat Similar to Terminal (.macos) HOT 1
- `alias ip` collision
- GH Desktop can't open file manager on Linux Mint HOT 1
- `urlencode` is only compatible with Py2
- QuickTime autoplay on open does not work
- `git rev-parse --is-inside-work-tree` does not handle bare Git repositories correctly
- f0e40cf342566f07277b2bec80890be4350e126c
- Check for `ls` flavor in `.aliases` is no longer correct
- com.apple.SoftwareUpdate
- Normalised `open` doesn't work as expected on WSL2
- Add a method for uninstalling the dot files HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotfiles.