openbox icon indicating copy to clipboard operation
openbox copied to clipboard

Add keybindings for window tiling

Open alexhenrie opened this issue 10 years ago • 2 comments

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 97% to 100%.

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

alexhenrie avatar Sep 19 '14 23:09 alexhenrie

Wow, didn't know this is possible without x-tile.. :-) Is it also possible to somehow reset the window back to original position/size?

fpytloun avatar Apr 14 '16 07:04 fpytloun

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

mnowaczyk avatar May 26 '17 23:05 mnowaczyk