Hi guys!
This is something I had heard you could do with openbox
but did not know how to do it.
Well, now I do, and you will too, if you don’t already know
Let’s suppose you want viber
to always start on desktop 4. Here’s what you do:
- Execute
viber
- Open a termminal and run
xprop | grep WM_CLASS | awk '{print $4}'
- The cursor will change to a cross
- Click anywhere within
viber
's window - The terminal will display:
"ViberPC"
- Open your RC file. Press
W-S
and selectRC - configuration file
- In the ediror search for
</applications>
- Insert this code right above
<application class="ViberPC">
<desktop>4</desktop>
<maximized>yes</maximized>
</application>
- Restart
openbox
and you are good to go!
You can do this with any application you have running, so the possibilities are endless!
BTW, the <applications>
section in the RC file is heavily commented, so you can read what different thing you can do with your apps.
Cheers!
S.