How to switch viewports by a not-keyboard-emulating command?

by GreggD   Last Updated January 13, 2018 01:02 AM

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).

Related Questions

Can't accessmy device via internet

Updated September 29, 2015 14:01 PM

transfer okular annotations to extended pdf

Updated August 31, 2018 11:02 AM

Multiple Workspace Names

Updated June 18, 2016 08:00 AM