Skip to content

Instantly share code, notes, and snippets.

@detherminal
Last active May 1, 2026 21:49
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.
@mrwh1t3n01z3

Copy link
Copy Markdown

i don't know what just happend but i tried it now an it worked thanks man 🥳

@aClue0

aClue0 commented Apr 28, 2026

Copy link
Copy Markdown

I have also found another solution for Arch Linux distros, or if you installed via FlatPak:
Arch Linux (AUR): The brave-bin or brave packages from the AUR ( yay -S brave-bin ) include a launcher script specifically designed to read ~/.config/brave-flags.conf .
Flatpak: The official Flatpak version (available on Flathub) is hardcoded to look for this file at ~/.var/app/com.brave.Browser/config/brave-flags.conf .

so if you nano/vim brave-flags.conf file (from the locations above) you can just add:

--ozone-platform=wayland
--enable-features=TouchpadOverscrollHistoryNavigation

and it works beautifully!

@Shihabus-Sakib-Rad

Copy link
Copy Markdown

this works on brave-origin as well

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