Created
August 18, 2021 17:58
-
-
Save ashgkwd/c8097bdc41cf076e1b323f8480b247ff to your computer and use it in GitHub Desktop.
Disables two finger back and forward gestures on macOS for Brave browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set your app name - the Chromium Browser (i.e Chrome, Brave) in a variable. | |
appName="Brave" | |
# Get the bundle Id of the Chromium Browser, store it in a variable. | |
bundleID=$(osascript -e 'id of app "'$appName'"') | |
# Example: Get the bundle Id of Brave browser | |
# Returns: | |
# com.brave.Browser | |
# Now let's set a flag to disable the guesture navigation. | |
defaults write $bundleID AppleEnableSwipeNavigateWithScrolls -bool FALSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment