Ubuntu – Using mouse button as part of a keyboard shortcut

gnome-shellkeyboardmouse scrollworkspace-switcherworkspaces

In Ubuntu 16.04 (Unity), I have a shortcut set to change workspaces by holding Super+MouseWheelUp or Super+MouseWheelDown. I'm trying to set up something similar on GNOME with Ubuntu 17.10. However, I can't find a way using Settings, GNOME Tweaks, or the DConf editor to add in mouse buttons as part of keyboard shortcuts. Can anyone point me in the right direction?

My goal:

Super+MouseWheelUp bound to Workspace Up

Super+MouseWheelDown bound to Workspace Down

Best Answer

That combination is there in GNOME by default, the only thing different is you'll have to release super before start scrolling.

So here the workflow is: press and release super, then MouseWheelUp to go to the workspace above or MouseWheelDown to go to the workspace below.

Related Question