Now that I think about this, why can't it simply be a TILE action for a few windows? Seems simple enough to get the job done, yes, no?<br><br>How about this link?<br><br><a href="http://urukrama.wordpress.com/2011/10/30/manual-tiling-in-openbox/">http://urukrama.wordpress.com/2011/10/30/manual-tiling-in-openbox/</a><br>
<br><br>THANKS<br><br><br><br><div class="gmail_quote">On Wed, Jan 2, 2013 at 8:53 AM, Brian Mattern <span dir="ltr"><<a href="mailto:rephorm@rephorm.com" target="_blank">rephorm@rephorm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sorry, that was an incomplete email that I didn't mean to send...<br>
The xprop formats need to be large (like 32i)<br>
<br>
I have attached a script that gets mostly there, but it looks like there<br>
are some issues if you have <margins> set in your rc.xml. And, it<br>
doesn't play well with xinerama...<br>
<br>
Anyway, it gets the idea across, at least. (I don't have any more time<br>
to play with it today).<br>
<span class="HOEnZb"><font color="#888888"><br>
Brian<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Wed, 02 Jan 2013, Brian Mattern wrote:<br>
<br>
><br>
> The "MoveResizeTo" action that is described in laertis' original email<br>
> should work for getting the window onto the left half of the screen (and<br>
> a similar one for the right half wouldn't be too hard to write).<br>
> Although he doesn't say explicitly, it sounds like his concern was about<br>
> the problem of undoing the behavior. In Win7, IIRC, when you drag away from<br>
> the edge, the window returns to its original size (while its position is<br>
> determined by the drag). This would not be possible with openbox actions<br>
> directly since you can't store the state.<br>
><br>
> But, it shouldn't be hard to do in a WM agnostic way using something<br>
> like xdotool and bash.<br>
><br>
> e.g.:<br>
><br>
> # get active window's id and geometry (this sets vars WINDOW X Y<br>
> # WIDTH HEIGHT and SCREEN)<br>
> eval $(xdotool getactivewindow getwindowgeometry --shell)<br>
><br>
> # store current geometry as properties<br>
> xprop -id $WINDOW -format _FOO_PREVIOUS_X 8i -set _FOO_PREVIOUS_X $X<br>
> xprop -id $WINDOW -format _FOO_PREVIOUS_Y 8i -set _FOO_PREVIOUS_Y $Y<br>
><br>
> On Tue, 01 Jan 2013, Das wrote:<br>
><br>
> > Hi guys,<br>
> ><br>
> > Did anyone see this, can this be done?<br>
> ><br>
> > THANKS<br>
> ><br>
> ><br>
> > On Tue, Dec 18, 2012 at 2:35 PM, Das <<a href="mailto:dasfox@gmail.com">dasfox@gmail.com</a>> wrote:<br>
> ><br>
> > > Ahhh snap a Window to the left then snap a Window to the right, having<br>
> > > them side by side like Windows 7, hmm I never thought about this<br>
> > > before...<br>
> > ><br>
> > > So are we saying this is do able? This would be a nice feature...<br>
> > ><br>
> > ><br>
> > ><br>
> > > On Tue, Dec 18, 2012 at 9:43 AM, Mathias Dufresne<br>
> > > <<a href="mailto:mathias.dufresne@gmail.com">mathias.dufresne@gmail.com</a>> wrote:<br>
> > > ><br>
> > > > Hi,<br>
> > > ><br>
> > > > You can use middle mouse button to resize vertically and right button to<br>
> > > > resize window horizontally in place of left button which resize in full<br>
> > > > screen...<br>
> > > > It almost remember previous position even if sometimes I had strange<br>
> > > > behaviour when clicking to get back to previous state. No idea if it was<br>
> > > old<br>
> > > > version, my mistake or whatever... Anyway, I use that for years and that<br>
> > > > miss me so much under Windows...<br>
> > > ><br>
> > > > That does not answer to your question but perhaps it would help : )<br>
> > > ><br>
> > > > Cheers,<br>
> > > ><br>
> > > > Mat<br>
> > > ><br>
> > > ><br>
> > > > 2012/12/18 laertis <<a href="mailto:loutsis@csd.uoc.gr">loutsis@csd.uoc.gr</a>><br>
> > > >><br>
> > > >> Hello,<br>
> > > >><br>
> > > >> first of all i'd like to say how much i love this WM and how<br>
> > > configurable<br>
> > > >> it is.<br>
> > > >><br>
> > > >> What is troubling me for the past of the week is how to get openbox to<br>
> > > >> simulate Win7 aero snapping behavior which i find really comforting and<br>
> > > >> productive btw. I assumed that in order to achieve so, given the current<br>
> > > >> configuration actions, i would need to know the variables holding the<br>
> > > >> window's position so i could "MoveResizeTo" those!<br>
> > > >><br>
> > > >> I think this guy describes the same thing with me except that he is<br>
> > > >> talking about mousebinds while i'm talking about keybinds.<br>
> > > >><br>
> > > >><br>
> > > >> And this is the nearest i could get to Win7 snapping :<br>
> > > >> <a href="http://www.jasoncavett.com/2012/05/better-aero-snap-with-openbox.html" target="_blank">http://www.jasoncavett.com/2012/05/better-aero-snap-with-openbox.html</a><br>
> > > >><br>
> > > >> I've tried a work around leveraging the if statements of the openbox<br>
> > > >> configuration file and the result was something like this :<br>
> > > >><br>
> > > >> <keybind key='W-Right"><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> <action name="If"><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> <maximized>yes</maximized><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> <then><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> <action name="Unmaximize"/><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> <action name="Unmaximize"/><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> <direction>vertical</direction><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> </action><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> <action name="MoveResizeTo"><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> <x>0</x><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> <y>0</y><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> <width>50%</width><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> </action><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> </then><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> <else><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> <action name="If"><br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> ..........<br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> ..........<br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> ..........<br>
> > > >><br>
> > > >><br>
> > > >><br>
> > > >> ..........<br>
> > > >><br>
> > > >> but i figured out but it can't be done without knowing the window's<br>
> > > >> position.<br>
> > > >><br>
> > > >> So i think writing a wmctrl script holding the windows position and<br>
> > > >> combining it with the above would give me what i want.<br>
> > > >><br>
> > > >> Is there any chance this is implemented somewhere out there?<br>
> > > >><br>
> > > >> I think i'm gonna write down a script either way but if there is<br>
> > > >> something out there getting the job done it would help for now.<br>
> > > >><br>
> > > >> However there are some issues i'm thinking right now, such as, how is<br>
> > > >> each windows going to hold it's previous state ?<br>
> > > >><br>
> > > >> Anyway, that's about it. Thank you for the support.<br>
> > > >><br>
> > > >><br>
> > > >> _______________________________________________<br>
> > > >> openbox mailing list<br>
> > > >> <a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
> > > >> <a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
> > > >><br>
> > > ><br>
> > > ><br>
> > > > _______________________________________________<br>
> > > > openbox mailing list<br>
> > > > <a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
> > > > <a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
> > > ><br>
> > ><br>
><br>
> > _______________________________________________<br>
> > openbox mailing list<br>
> > <a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
> > <a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
><br>
> _______________________________________________<br>
> openbox mailing list<br>
> <a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
> <a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
</div></div><br>_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
<br></blockquote></div><br>