<div dir="ltr">Hello,<div><br></div><div>first of all i&#39;d like to say how much i love this WM and how configurable it is.</div><div><br></div><div>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&#39;s position so i could &quot;MoveResizeTo&quot; those!</div>



<div><br></div><div>I think this guy describes the same thing with me except that he is talking about mousebinds while i&#39;m talking about keybinds.</div><div><br></div><div><br></div><div>And this is the nearest i could get to Win7 snapping : <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></div>

<div><br></div><div style>I&#39;ve tried a work around leveraging the if statements of the openbox configuration file and the result was something like this :</div><div><br></div><div><pre class="" style="border:1px solid rgb(58,139,140);overflow:auto;padding:3px;margin-top:3px;margin-bottom:3px;word-wrap:normal;font-size:0.9em;font-family:&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Liberation Mono&#39;,Monaco,&#39;Lucida Console&#39;,&#39;Courier New&#39;,monospace;background-color:rgb(230,244,244)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">&lt;keybind key=&#39;W-Right&quot;&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">  &lt;action name=&quot;If&quot;&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">    &lt;maximized&gt;yes&lt;/maximized&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">    &lt;then&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">      &lt;action name=&quot;Unmaximize&quot;/&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">      &lt;action name=&quot;Unmaximize&quot;/&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">        &lt;direction&gt;vertical&lt;/direction&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">      &lt;/action&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">      &lt;action name=&quot;MoveResizeTo&quot;&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">        &lt;x&gt;0&lt;/x&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">        &lt;y&gt;0&lt;/y&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">        &lt;width&gt;50%&lt;/width&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">      &lt;/action&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">    &lt;/then&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">    &lt;else&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">      &lt;action name=&quot;If&quot;&gt;</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">       ..........</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">       ..........</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">       ..........</span><br style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">

<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)">       ..........</span><br></pre></div><div style>  but i figured out but it can&#39;t be done without knowing the window&#39;s position.</div>

<div style><br></div><div style>So i think writing a wmctrl script holding the windows position and combining it with the above would give me what i want.</div><div style><br></div><div style>Is there any chance this is implemented somewhere out there?</div>

<div style><br></div><div style>I think i&#39;m gonna write down a script either way but if there is something out there getting the job done it would help for now.</div><div style><br></div><div style>However there are some issues i&#39;m thinking right now, such as, how is each windows going to hold it&#39;s previous state ?</div>

<div style><br></div><div style>Anyway, that&#39;s about it. Thank you for the support.</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;border-right-width:1px;border-right-color:rgb(204,204,204);border-right-style:solid;padding-left:1ex;padding-right:1ex">

</blockquote></blockquote>

</div>