Subscription date : 24 January 2009
Messages : 12573
|
Hello,
I think there is no command to do that but you can use xdotool to switch to the workspace 3 and then launch the command. E.g.:
- For viewport
xdotool set_desktop_viewport 1280 0 && virtualbox
- For desktop
xdotool set_desktop 3 && virtualbox
(see xdotool manual for more information but if you're using Compiz (Unity), you only have viewport and then, you have to give a position: for example, if your screen is 1280x800, you can move to the 2nd workspace by doing: xdotool set_desktop_viewport 1280 0)
BUT, it's maybe better to use settings of your window manager (Compiz I guess): you can open the ccsm (CompizConfig Settings Manager), enable and display settings of your 'Place Windows' plugin and add a window (fixed viewport section) by using its class  |