Swipe gestures support for mouse buttons through systemd service that intercepts and emulates input device events. Only up, down, left and right swipes are supported. You can also configure buttons to emulate vertical and horizontal scroll while they're pressed.
Since it operates at evdev level, it works on X11 and Wayland.
The default configuration works fine on Gnome desktop, activating the overview and switching workspaces through right mouse button swipes. For integration with other desktops edit the config file (/etc/mouse-swipe.conf) and restart the service (systemctl restart mouse-swipe.service).
git clone https://github.com/tcorreabr/mouse-swipe.git && cd mouse-swipe
sudo ./install
sudo ./uninstall
If you have edited the /etc/mouse-swipe.conf file, you might want to make a backup of it before uninstalling.