Skip to content

Instantly share code, notes, and snippets.

@fabiovila
Last active March 16, 2024 20:40
Show Gist options
  • Save fabiovila/5dc2ef97dca42870d6624b35d6ed3069 to your computer and use it in GitHub Desktop.
Save fabiovila/5dc2ef97dca42870d6624b35d6ed3069 to your computer and use it in GitHub Desktop.
Openbox tilling keybinds

Puts this xml code in section <keyboard> </keyboard> of ~/.config/openbox/rc.xml.

Shortcuts are then Window+Shift+[hjkl]

<keybind key="W-S-h">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>1/2</width>
<height>1/1</height>
</action>
</keybind>
<keybind key="W-S-l">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
<width>1/2</width>
<height>1/1</height>
</action>
</keybind>
<keybind key="W-S-k">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<y>0</y>
<width>1/2</width>
<height>1/2</height>
</action>
</keybind>
<keybind key="W-S-j">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<y>-0</y>
<width>1/2</width>
<height>1/2</height>
</action>
</keybind>
<keybind key="W-S-h">
<action name="Unmaximize"/>
<action>
<x>0</x>
<y>-0</y>
<width>1/2</width>
<height>1/2</height>
</action>
</keybind>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment