Skip to content

Instantly share code, notes, and snippets.

@ashgkwd
Created August 18, 2021 17:58
Show Gist options
  • Save ashgkwd/c8097bdc41cf076e1b323f8480b247ff to your computer and use it in GitHub Desktop.
Save ashgkwd/c8097bdc41cf076e1b323f8480b247ff to your computer and use it in GitHub Desktop.
Disables two finger back and forward gestures on macOS for Brave browser
# 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