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