Skip to content

Instantly share code, notes, and snippets.

@mnowaczyk
Created February 17, 2017 20:42
Show Gist options
  • Save mnowaczyk/2dcb2269311f3bc6f0cead2fa1cc7027 to your computer and use it in GitHub Desktop.
Save mnowaczyk/2dcb2269311f3bc6f0cead2fa1cc7027 to your computer and use it in GitHub Desktop.
Openbox configuration - splitting in half + compiz-style numpad support
<!-- Horizontal tiling -->
<keybind key="W-h">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<height>50%</height>
</action>
<action name="MaximizeHorz"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
</action>
<action name="NextWindow">
<interactive>no</interactive>
<dialog>none</dialog>
<finalactions>
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<height>50%</height>
</action>
<action name="MaximizeHorz"/>
<action name="MoveResizeTo">
<x>0</x>
<y>-0</y>
</action>
</finalactions>
</action>
</keybind>
<!-- Restore window dimensions -->
<keybind key="W-n">
<action name="UnmaximizeFull"/>
<action name="NextWindow">
<interactive>no</interactive>
<dialog>none</dialog>
<finalactions>
<action name="UnmaximizeFull"/>
</finalactions>
</action>
</keybind>
<!--numpad -->
<!--corners-->
<keybind key="W-KP_7">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<width>50%</width>
<height>50%</height>
</action>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
</action>
</keybind>
<keybind key="W-KP_9">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<width>50%</width>
<height>50%</height>
</action>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
</action>
</keybind>
<keybind key="W-KP_3">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<width>50%</width>
<height>50%</height>
</action>
<action name="MoveResizeTo">
<x>-0</x>
<y>-0</y>
</action>
</keybind>
<keybind key="W-KP_1">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<width>50%</width>
<height>50%</height>
</action>
<action name="MoveResizeTo">
<x>0</x>
<y>-0</y>
</action>
</keybind>
<!--halves-->
<keybind key="W-KP_2">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<width>100%</width>
<height>50%</height>
</action>
<action name="MoveResizeTo">
<x>0</x>
<y>-0</y>
</action>
</keybind>
<keybind key="W-KP_8">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<width>100%</width>
<height>50%</height>
</action>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
</action>
</keybind>
<keybind key="W-KP_6">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<width>50%</width>
<height>100%</height>
</action>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
</action>
</keybind>
<keybind key="W-KP_4">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<width>50%</width>
<height>100%</height>
</action>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
</action>
</keybind>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment