openbox
openbox copied to clipboard
Add keybindings for window tiling
These keybindings were written by Julien Lavergne [email protected]
and included in the GPL lubuntu-default-settings Ubuntu package. The
only contributions of mine are cleaning up the whitespace and changing
I intend to get these keybindings into LXDE (see [1] and [2]) but I wanted to give the Openbox developers an opportunity to include them upstream.
[1] https://sourceforge.net/p/lxde/feature-requests/191/#5372 [2] http://git.lxde.org/gitweb/?p=lxde/lxde-common.git;a=blob;f=openbox/rc.xml.in;h=8db93bfee711da94a37ca78088093f6858f8a8ca;hb=HEAD
Wow, didn't know this is possible without x-tile.. :-) Is it also possible to somehow reset the window back to original position/size?
I would suggest changing keys to W-KP-n or C-A-KP-n and adding 'corner' (1/4 screen size) placements. This is what I use:
<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>
etc. This would be more consistent with Compiz's defaults and wouldn't conflict with LXDE's desktop switching keybindings. It's also possible to tile two recent windows (but only two, more nesting doesn't work) and restore them using nested actions/callbacks: https://askubuntu.com/questions/516303/tiling-windows-horizontally-and-vertically-under-lubuntu-lxde-openbox