Enable Brave Swipe Gesture in KDE
We commonly use 2 fingers to swipe across browser pages.
Under Fedora KDE, Firefox has this function working, but Brave is not working by default. This is how to enable that:
- Make sure you are using Wayland for Brave.
- Copy the
.desktopfile for Brave to a new location:cp /usr/share/applications/brave-browser.desktop ~/.local/share/applications/ - Edit the copied file, locate lines starting with
Exec= - Append the feature flag to every
Exec=lines with--enable-features=TouchpadOverscrollHistoryNavigation:
# Then it looks like this
Exec=/usr/bin/brave-browser-stable %U --enable-features=TouchpadOverscrollHistoryNavigation
Exec=/usr/bin/brave-browser-stable --enable-features=TouchpadOverscrollHistoryNavigation
Exec=/usr/bin/brave-browser-stable --incognito --enable-features=TouchpadOverscrollHistoryNavigation
- Save the file, and run
update-desktop-database ~/.local/share/applicationsto refresh the desktop file. - Enable natural scrolling direction by enabling
System Settings > Mouse and Touchpad > Touchpad > Scrolling > Invert scroll direction (Natural scrolling) - Then it is done. Brave swipe function works nicely.