Topic: Undecorate windows on Maximize? Openbox questions

Hi all,

I was wondering if there's a native way for Openbox (the one in stable (3.5 I think)) to undecorate windows on maximize? I need a solution that does exactly that, b/c both I (who uses keybinds mostly) and my girlfriend (who uses mouse buttons) both use the computer. Basically I'm worried that if I toggled the decoration each time the button/key was pressed, somehow it would get out of whack.

tl;dr:  I need a rule that finds maximized windows and undecorates them. Is this possible on OB 3.5 or should I get devilspie, or is it even impossible on that?

All help is appreciated smile

Leave the gun. Take the cannoli.

Re: Undecorate windows on Maximize? Openbox questions

Seems like you would need to trigger a shell script to check the xml for the maximised = true value for applications, and then if it's found apply the decor = no trait specifically to those applications.

Doesn't seem like something openbox can do natively since AFAIK xml can't parse conditionals.  I could be totally wrong.

Re: Undecorate windows on Maximize? Openbox questions

To undecorate, change following lines in  rc.xml:

<applications>
     <application class="*">
         <decor>no</decor>
    </application>

Re: Undecorate windows on Maximize? Openbox questions

bender, I have that already with my OB, the problem is that I want each window decorated when unmaximized and undecorated when maximized.

orion, could this be done with devilspie? I was thinking a possible workaround would be somehow classing all windows that are maximized with a certain class...is this possible?

Leave the gun. Take the cannoli.

Re: Undecorate windows on Maximize? Openbox questions

I didn't know about devilspie until right now.  From a quick glance at the manpage I'm not sure, but it doesn't seem impossible.

I bet the pytyle developers would be interested in a successfully functioning selective undecoration like that though.

And actually so would I... Could be useful for the LCARS theme I'm working on.

Last edited by orionthehunter (2011-11-02 03:39:30)

Re: Undecorate windows on Maximize? Openbox questions

Hey, I was browsing the repos, check out the package "maximus" see if that does what you're looking for

Re: Undecorate windows on Maximize? Openbox questions

^ I think maximus only works in Gnome?  I remember it as part of UNR, back in The Dark Days when UNR was a Clutter-based Gnome overlay.

while ( ! ( succeed = try() ) );

Re: Undecorate windows on Maximize? Openbox questions

pvsage wrote:

^ I think maximus only works in Gnome?

Maximus also works in Openbox... It does what the OP wants...