You are not logged in.

#1 2015-10-21 17:25:43

rubensoleao
Member
Registered: 2015-10-21
Posts: 4

Openbox: Open applications on the workspace I opened it originally

If an application takes to long to load, it won't open on the original workspace where I did the command to open that application.

I really want to change this... where should I start?

Last edited by rubensoleao (2015-10-21 17:26:19)

Offline

#2 2015-10-21 17:36:19

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: Openbox: Open applications on the workspace I opened it originally

I don't think openbox is able to handle it. A window manager just reacts to requests for drawing/replacing/resizing/whatever X windows (and other X related things).

The problem is that it would need to keep track of each process that is launched, for the case that one of those processes start creating an X window (e.g. if you type "firefox", then change to a different workspace, then after a few seconds that thing boots up, draws a window, openbox would need to know on which workspace you were when you launched the firefox process).


pkgs │ hacks │ cfg │ blag

Offline

#3 2015-10-21 18:34:42

rubensoleao
Member
Registered: 2015-10-21
Posts: 4

Re: Openbox: Open applications on the workspace I opened it originally

ayekat wrote:

I don't think openbox is able to handle it

I think you're right... I've found a utility named Devil's Pie and it looks like it could work or you can tweak it to make it work. Gonna give it a try.

Offline

#4 2015-10-21 18:35:29

sdoubleyou
Member
Registered: 2015-09-09
Posts: 5

Re: Openbox: Open applications on the workspace I opened it originally

Maybe this will help this approach?

</application>
  <!-- i want firefox on desktop 3 and maximized -->
  <application name="Firefox*">
    <desktop>3</desktop>
    <maximized>yes</maximized>
  </application>
  <!-- MPlayer will follow me around when i switch desktop.
       that way i can always watch my vids when coding.
       same goes for Realplayer -->
  <application class="MPlayer">
    <desktop>all</desktop>
    <layer>above</layer>
  </application>

Xou can read more here
http://openbox.org/wiki/Help:Applicatio … p_settings

Offline

#5 2015-10-21 18:54:50

rubensoleao
Member
Registered: 2015-10-21
Posts: 4

Re: Openbox: Open applications on the workspace I opened it originally

@sdoubleyou

This approach is good for things that you open frequently, works great for my Calibre. But it's still a tailored solution and not a general one.

And for some things like using multiple firefox profiles I can't do it by modifying my rc.xml. For example, I use a script that opens up 2 different firefox profiles on different workspaces but it's very clumsy because it has to wait for one firefox profile to open before opening the other:

wmctrl -s 2 # Set to workspace 2
firefox -p personal &

sleep 3 # wait 3 sec.

wmctrl -s 3 # Set to workspace 3
firefox -p work &

Last edited by rubensoleao (2015-10-21 19:03:46)

Offline

Board footer

Powered by FluxBB