Last active
May 1, 2026 21:49
-
-
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
This file contains hidden or 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
| # 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. |
i don't know what just happend but i tried it now an it worked thanks man 🥳
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!
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
You rock, I was trying to figure out why my Brave browser didnt support something so simple coming from a Firefox user. This worked perfectly on NixOS and I just had to edit my .desktop file. Cheers