[openbox] Windows Positioning

Mathias Dufresne mathias.dufresne at gmail.com
Tue Dec 18 14:43:18 EST 2012


Hi,

You can use middle mouse button to resize vertically and right button to
resize window horizontally in place of left button which resize in full
screen...
It almost remember previous position even if sometimes I had strange
behaviour when clicking to get back to previous state. No idea if it was
old version, my mistake or whatever... Anyway, I use that for years and
that miss me so much under Windows...

That does not answer to your question but perhaps it would help : )

Cheers,

Mat


2012/12/18 laertis <loutsis at csd.uoc.gr>

> Hello,
>
> first of all i'd like to say how much i love this WM and how configurable
> it is.
>
> What is troubling me for the past of the week is how to get openbox to
> simulate Win7 aero snapping behavior which i find really comforting and
> productive btw. I assumed that in order to achieve so, given the current
> configuration actions, i would need to know the variables holding the
> window's position so i could "MoveResizeTo" those!
>
> I think this guy describes the same thing with me except that he is
> talking about mousebinds while i'm talking about keybinds.
>
>
> And this is the nearest i could get to Win7 snapping :
> http://www.jasoncavett.com/2012/05/better-aero-snap-with-openbox.html
>
> I've tried a work around leveraging the if statements of the openbox
> configuration file and the result was something like this :
>
> <keybind key='W-Right">
>
>   <action name="If">
>
>     <maximized>yes</maximized>
>
>     <then>
>
>       <action name="Unmaximize"/>
>
>       <action name="Unmaximize"/>
>
>         <direction>vertical</direction>
>
>       </action>
>
>       <action name="MoveResizeTo">
>
>         <x>0</x>
>
>         <y>0</y>
>
>         <width>50%</width>
>
>       </action>
>
>     </then>
>
>     <else>
>
>       <action name="If">
>
>        ..........
>
>        ..........
>
>        ..........
>
>        ..........
>
>   but i figured out but it can't be done without knowing the window's
> position.
>
> So i think writing a wmctrl script holding the windows position and
> combining it with the above would give me what i want.
>
> Is there any chance this is implemented somewhere out there?
>
> I think i'm gonna write down a script either way but if there is something
> out there getting the job done it would help for now.
>
> However there are some issues i'm thinking right now, such as, how is each
> windows going to hold it's previous state ?
>
> Anyway, that's about it. Thank you for the support.
>
>
> _______________________________________________
> openbox mailing list
> openbox at icculus.org
> http://icculus.org/mailman/listinfo/openbox
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20121218/d0f49cc1/attachment-0001.htm>


More information about the openbox mailing list