Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keybindings for window tiling #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexhenrie
Copy link

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

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
<height>97%</height> to <height>100%</height>.
@fpytloun
Copy link

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

@mnowaczyk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants