Last active
February 1, 2024 17:02
-
-
Save michezio/095c3a5cdf631e1de0377c9960d05fe6 to your computer and use it in GitHub Desktop.
Openbox keybindings to snap active window at side or corner of the screen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- add this to ~/.config/openbox/rc.xml or lxde-rc.xml, lxqt-rc.xml or similar --> | |
<!-- use Ctrl + Alt + NumPad to move the window to the corrisponding position of the screen --> | |
<keyboard> | |
<!-- 5, Maximize the window --> | |
<keybind key="C-A-KP_5"> | |
<action name="MaximizeFull"/> | |
</keybind> | |
<!-- 4, Snap Left, half width, full height --> | |
<keybind key="C-A-KP_4"> | |
<action name="UnmaximizeFull"/> | |
<action name="MoveResizeTo"> | |
<x>0</x><y>0</y><height>100%</height><width>50%</width> | |
</action> | |
</keybind> | |
<!-- 6, Snap Right, half width, full height --> | |
<keybind key="C-A-KP_6"> | |
<action name="UnmaximizeFull"/> | |
<action name="MoveResizeTo"> | |
<x>-0</x><y>0</y><height>100%</height><width>50%</width> | |
</action> | |
</keybind> | |
<!-- 8, Snap Top, full width, half height --> | |
<keybind key="C-A-KP_8"> | |
<action name="UnmaximizeFull"/> | |
<action name="MoveResizeTo"> | |
<x>0</x><y>0</y><width>100%</width><height>50%</height> | |
</action> | |
</keybind> | |
<!-- 2, Snap Bottom, full width, half height --> | |
<keybind key="C-A-KP_2"> | |
<action name="UnmaximizeFull"/> | |
<action name="MoveResizeTo"> | |
<x>0</x><y>-0</y><width>100%</width><height>50%</height> | |
</action> | |
</keybind> | |
<!-- 7, Snap Top-Left, half width/height --> | |
<keybind key="C-A-KP_7"> | |
<action name="UnmaximizeFull"/> | |
<action name="MoveResizeTo"> | |
<x>0</x><y>0</y><width>50%</width><height>50%</height> | |
</action> | |
</keybind> | |
<!-- 1, Snap Bottom-Left, half width/height --> | |
<keybind key="C-A-KP_1"> | |
<action name="UnmaximizeFull"/> | |
<action name="MoveResizeTo"> | |
<x>0</x><y>-0</y><width>50%</width><height>50%</height> | |
</action> | |
</keybind> | |
<!-- 9, Snap Top-Right, half width/height --> | |
<keybind key="C-A-KP_9"> | |
<action name="UnmaximizeFull"/> | |
<action name="MoveResizeTo"> | |
<x>-0</x><y>0</y><width>50%</width><height>50%</height> | |
</action> | |
</keybind> | |
<!-- 3, Snap Bottom-Right, half width/height --> | |
<keybind key="C-A-KP_3"> | |
<action name="UnmaximizeFull"/> | |
<action name="MoveResizeTo"> | |
<x>-0</x><y>-0</y><width>50%</width><height>50%</height> | |
</action> | |
</keybind> | |
</keyboard> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment