Skip to content

Instantly share code, notes, and snippets.

@detherminal
Last active March 19, 2026 23:42
Show Gist options
  • Select an option

  • Save detherminal/1845c794ee3f3cdcc4e7eb713e9ee6fd to your computer and use it in GitHub Desktop.

Select an option

Save detherminal/1845c794ee3f3cdcc4e7eb713e9ee6fd to your computer and use it in GitHub Desktop.
Brave Browser Wayland Two (2) Finger Touchpad Gesture Swipe History Back And Forth Enabling
# To add two-finger gesture to back and forth swiping, follow this steps with shell
# 1 - Open .desktop file with nano
sudo nano /usr/share/applications/brave-browser.desktop
# 2 - Move to a little bottom, edit the place where it is `Exec=` to match this
Exec=/usr/bin/brave-browser-stable %U --ozone-platform=wayland --enable-features=TouchpadOverscrollHistoryNavigation
# Use `Ctrl-O` to write and `Ctrl-X` to exit
# Now restart the brave browser and you will be able to swipe back and forth with two-finger touchpad gestures.
@aClue0
Copy link
Copy Markdown

aClue0 commented Mar 17, 2026

thank you this worked for me! but a little disclaimer, you have to change "brave-browser-stable" to your default exec command. For example mine was just Exec = brave %U so you replace "brave-browser-stable" with just "brave". you also have to replace every instance of Exec with it's own modified one.

@mrwh1t3n01z3
Copy link
Copy Markdown

it did not work on ubuntu (.deb) package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment