You are not logged in.

#1 2009-04-25 11:39:14

zamolxis
Member
Registered: 2008-03-29
Posts: 34

How to start an application in a specific workspace (openbox) ?

The title says it all - I'd like to have VirtualBox start in a particular workspace - is that possible with openbox?

Thanks!

Offline

#2 2009-04-25 11:49:32

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: How to start an application in a specific workspace (openbox) ?


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#3 2009-04-25 12:10:40

zamolxis
Member
Registered: 2008-03-29
Posts: 34

Re: How to start an application in a specific workspace (openbox) ?

Well, a 'start application in specific workspace openbox' search didn't help - that's why I posted here. big_smile

I didn't imagine the search had to be less specific ('openbox help') to find out what the answer to 'how to start an application in a specific workspace in openbox'!

There is google for you! lol

Offline

#4 2009-04-25 14:38:11

NeoXP
Member
From: MS Matrix
Registered: 2009-01-09
Posts: 206
Website

Re: How to start an application in a specific workspace (openbox) ?

Alright then, look into the file ~/.config/openbox/rc.xml. There is a section about applications.

There you can set different things for applications, one of them is <desktop>...</desktop>. Obviously you should replace the "..." with the number of the desktop that you want the application to be started in.

Edit:

Well ok then, here is an example how I get Thunderbird to open on desktop 2.

<application class="Thunderbird*">
   <desktop>2</desktop>
</application>

The instruction to get "application class" is:

xprop | grep "WM_WINDOW_ROLE\|WM_CLASS" && echo "WM_CLASS(STRING) = \"NAME\", \"CLASS\""

Last edited by NeoXP (2009-04-25 17:50:39)


Arch x86_64 on HP 6820s and on HP nx9420. Registered Linux User 350155, since 24-03-2004
"Everyone said that it could not be done, until someone came along who didn't know that."

Offline

#5 2009-04-25 15:32:18

zamolxis
Member
Registered: 2008-03-29
Posts: 34

Re: How to start an application in a specific workspace (openbox) ?

Thanks, it works perfectly.

Offline

Board footer

Powered by FluxBB