Savoir Faire · A random collection of writings Light modeDark mode


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:

  1. Make sure you are using Wayland for Brave.
  2. Copy the .desktop file for Brave to a new location: cp /usr/share/applications/brave-browser.desktop ~/.local/share/applications/
  3. Edit the copied file, locate lines starting with Exec=
  4. 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
  1. Save the file, and run update-desktop-database ~/.local/share/applications to refresh the desktop file.
  2. Enable natural scrolling direction by enabling System Settings > Mouse and Touchpad > Touchpad > Scrolling > Invert scroll direction (Natural scrolling)
  3. Then it is done. Brave swipe function works nicely.