To configure Logitech mice hotkeys under linux, use solaar app, and for it to work properly with gnome under wayland, according to their manual, use:
- gnome-shell extension
- udev rule, that
should be placed in
/etc/udev/rules.d.
My rules to switch desktops with mouse buttons are:
- Key: Forward Button (0056), Key press: Super_L + Alt_L + Left
- Key: Back Button (0053), Key press: Super_L + Alt_L + Right