How to open a program on particular desktop?

Posted by Vi on Super User See other posts from Super User or by Vi
Published on 2011-01-22T17:25:37Z Indexed on 2011/03/12 16:12 UTC
Read the original article Hit count: 223

Filed under:
|
|

When I start GUI program, it's window appears appears on currently active desktop (essentially, on random desktop).

How to make it to appear on the specified desktop? For example, at startup I want certain programs to be started and distributed to desktops.

I've already set up config file of openbox to force some programs to always start on specific desktop.

Ideally it should be like:

start_on_desktop 1 gnome-terminal --tab -e program1 --tab -e program2
start_on_desktop 2 gnome-terminal --tab -e program3 --tab -e program4
start_on_desktop 3 firefox

It should be able to start the same program on other desktop.

Also dislike when I start program while being on desktop X then switch to desktop Y and SUDDENLY a program which should be on X appears on Y. When I start lots of programs on and switch often between desktops they end up being in chaos and I need to collect them together and redistribute sanely.

Also I want the first initial gnome-terminal to be on desktop 3, but I also want subsequent gnome-terminals to be on the desktop where I pressed the keystroke (also configured in openbox) that launches gnome-terminal.

© Super User or respective owner

Related posts about desktop

Related posts about window-manager