I'm looking for a system command to switch between available viewports/desktops and I am aware that this can be achieved by simulating keyboard shourtcut Ctrl+Alt+Left/Right, f.e. like this:
xte 'keydown Control_L' 'keydown Alt_L' 'keydown Left' 'keyup Control_L' 'keyup Alt_L' 'keyup Left'
... but that is not what I need.
I want to map this certain command to a special mouse button (using
xbindkeys) on host system and I would like this to work when being inside guest VM's.
When you click with such mapped keyboard-emulating command within VM, it just switches viewports within VM and not in host-OS, so it would have to be some lower-level system command.
I'm working on MATE environment with Marco as a window manager and I don't want to switch to Compiz (I know it's got special setting that would do that).