alright, 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
Code:
(text Editor) ~/.config/openbox/rc.xml
2) 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.
Code:
<keybind key="W-Tab">
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>640</width>
<height>970</height>
</action>
</keybind>
<keybind key="C-Tab">
<action name="MoveResizeTo">
<x>640</x>
<y>0</y>
<width>640</width>
<height>970</height>
</action>
</keybind>
4) Change the widths and heights to the dimensions of your monitor, in addition to that, you'll also need to change the X position. This is currently set up for a 1280x1040 resolution display.
Here is a few common resolutions that I've set up for copy and paste.
800x600
Code:
<keybind key="W-Tab">
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>300</width>
<height>600</height>
</action>
</keybind>
<keybind key="C-Tab">
<action name="MoveResizeTo">
<x>300</x>
<y>0</y>
<width>300</width>
<height>600</height>
</action>
</keybind>
1024x768
Code:
<keybind key="W-Tab">
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>512</width>
<height>768</height>
</action>
</keybind>
<keybind key="C-Tab">
<action name="MoveResizeTo">
<x>512</x>
<y>0</y>
<width>512</width>
<height>768</height>
</action>
</keybind>
1280x720
Code:
<keybind key="W-Tab">
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>640</width>
<height>720</height>
</action>
</keybind>
<keybind key="C-Tab">
<action name="MoveResizeTo">
<x>640</x>
<y>0</y>
<width>640</width>
<height>720</height>
</action>
</keybind>
1280x1040
Code:
<keybind key="W-Tab">
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>640</width>
<height>970</height>
</action>
</keybind>
<keybind key="C-Tab">
<action name="MoveResizeTo">
<x>640</x>
<y>0</y>
<width>640</width>
<height>970</height>
</action>
</keybind>
ill post up more resolutions later if people are interested. Its late here and i need some sleep.
Bookmarks