Skip to content

Instantly share code, notes, and snippets.

@omarowns
Created May 6, 2019 21:38
Show Gist options
  • Select an option

  • Save omarowns/ee5bad8c95779400866512be133b75ff to your computer and use it in GitHub Desktop.

Select an option

Save omarowns/ee5bad8c95779400866512be133b75ff to your computer and use it in GitHub Desktop.
An experimental configuration for emulating a Spectacle-like keyboard shortcuts for OpenBox
<keyboard>
<!-- Left Half -->
<keybind key="W-A-Left">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<height>100%</height>
<width>50%</width>
</action>
</keybind>
<!-- Right Half -->
<keybind key="W-A-Right">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>990</x>
<y>0</y>
<height>100%</height>
<width>50%</width>
</action>
</keybind>
<!-- Top Half -->
<keybind key="W-C-Up">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<height>50%</height>
<width>100%</width>
</action>
</keybind>
<!-- Botton Half -->
<keybind key="W-C-Down">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>540</y>
<height>50%</height>
<width>100%</width>
</action>
</keybind>
<!-- Upper Left -->
<keybind key="W-C-Left">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<height>50%</height>
<width>50%</width>
</action>
</keybind>
<!-- Upper Right -->
<keybind key="W-C-Right">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>990</x>
<y>0</y>
<height>50%</height>
<width>50%</width>
</action>
</keybind>
<!-- Lower Left -->
<keybind key="W-C-S-Left">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>540</y>
<height>50%</height>
<width>50%</width>
</action>
</keybind>
<!-- Lower Right -->
<keybind key="W-C-S-Right">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>990</x>
<y>540</y>
<height>50%</height>
<width>50%</width>
</action>
</keybind>
</keyboard>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment