Topic: Aero Snap in Openbox
*edit to use the method described in post 2 by pvsage
If this is old new's then i'm sorry, but I've just found out how to set something up in open box that's been driving me insane for a while now. I personally enjoy windows "Aero Snap" features for web work, makes it easier to code and view, heres how to do it in openbox.
Steps
1) launch a terminal and place this code in it
gedit ~/.config/openbox/rc.xml2) go down to the end of the key bindings section, right before the mouse binds begin. (this is where were going to declare the binds for the "Snap" feature.
3)paste these binds in after the last key bind, but before the </keyboard> tag.
<keybind key="C-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>640</width>
</action>
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>640</width>
</action>
<action name="MoveToEdgeEast"/>
</keybind>4) Change the widths according to your resolution
Here is a few common resolutions that I've set up for copy and paste.
800xHeight
<keybind key="C-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>300</width>
</action>
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>300</width>
</action>
<action name="MoveToEdgeEast"/>
</keybind>1024xHeight
<keybind key="C-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>512</width>
</action>
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>512</width>
</action>
<action name="MoveToEdgeEast"/>
</keybind>1152xHeight
<keybind key="C-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>576</width>
</action>
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>576</width>
</action>
<action name="MoveToEdgeEast"/>
</keybind>1280xHeight
<keybind key="C-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>640</width>
</action>
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>640</width>
</action>
<action name="MoveToEdgeEast"/>
</keybind>1366xHeight
<keybind key="C-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>683</width>
</action>
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>683</width>
</action>
<action name="MoveToEdgeEast"/>
</keybind>1440xHeight
<keybind key="C-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>720</width>
</action>
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>720</width>
</action>
<action name="MoveToEdgeEast"/>
</keybind>1600xHeight
<keybind key="C-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>800</width>
</action>
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Tab">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>800</width>
</action>
<action name="MoveToEdgeEast"/>
</keybind>ill post up more resolutions later if people are interested. Its late here and i need some sleep.
*Edit. Thank you for telling me about the better method pvsage
Last edited by psyco430404 (2011-07-05 19:14:01)
- TF2 Soldier