<div dir="ltr">Hello,<div><br></div><div>first of all i'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's position so i could "MoveResizeTo" 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'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'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:'DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono',Monaco,'Lucida Console','Courier New',monospace;background-color:rgb(230,244,244)">
<span style="font-family:arial;font-size:small;white-space:normal;background-color:rgb(255,255,255)"><keybind key='W-Right"></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)"> <action name="If"></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)"> <maximized>yes</maximized></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)"> <then></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)"> <action name="Unmaximize"/></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)"> <action name="Unmaximize"/></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)"> <direction>vertical</direction></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)"> </action></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)"> <action name="MoveResizeTo"></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)"> <x>0</x></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)"> <y>0</y></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)"> <width>50%</width></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)"> </action></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)"> </then></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)"> <else></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)"> <action name="If"></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't be done without knowing the window'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'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'm thinking right now, such as, how is each windows going to hold it's previous state ?</div>
<div style><br></div><div style>Anyway, that'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>