[openbox] Two x displays (not xinerama) support

Mikael Magnusson mikachu at gmail.com
Mon Jul 18 03:34:25 EDT 2011

On 18 July 2011 01:27, Freddie <freddie_signup at gmx.co.uk> wrote:
> On Sun, 17 Jul 2011, Mikael Magnusson wrote:
>> It's technically possible, but it doesn't mesh well with the wm-spec
>> which openbox follows. Ie, any pagers and panels would be terminally
>> confused about those windows, there is only a single 'which desktop is
>> this window on' property per window, and one global 'which desktop is
>> the user on' property on the root window. For this specific case,
>> maybe you could simply mark all windows on monitor two as 'All
>> Desktops'? Unless you also want to switch virtual desktop on monitor
>> 2, but you didn't say that :).
> This is actually the conclusion I've come to. The next problem is finding
> how to mark windows on monitor 2 as omnipresent, as so far I've only come
> across "ToggleOmnipresent", which isn't quite what I want. Am I missing an
> action/property?

You're not, I was just sure there was one, but there isn't :). You
could do some silly cludge in the master branch with the If action, to
only call the toggle action if it isn't currently omnipresent, but it
might be better to simply let you say "All" to the SendToDesktop
action. However, if you're already using an applications rule to send
a window to monitor 2, just make it omnipresent in that rule
obviously. Is it a big problem that you press the key twice and can't
tell if you already made it omnipresent or not?

> As an aside, what do other xinerama users do about setting background
> images? I wanted to set two images, one for each monitor. The only tool I've
> found to allow placing an image at a coordinate is hokum, which actually
> works quite well.


Mikael Magnusson

More information about the openbox mailing list