0

I'm running OpenBox on a Debian 10 Buster system and I would like to configure it to behave like a tiling window manager. I know OpenBox is a stacking window manager but since it is pretty well customizable I am sure we can make up something. However I don't how to do it.

0

Don't expect OpenBox to behave like a tiling window manager, because as you said, it's a stacking window manager. However you can tweak it with some scripts to add some tiling WM functionalities.

Have a look at pytyle (manual and GitHub page), zentile and Openbox-tiling. I never tried the last one but the first two scripts are working like a charm on my system. zentile is easier to install by the way: just download the executable, make it executable on your system and add the line path_to_zentile/zentile_linx_amd64 & in your ~/.config/openbox/autostart file. You can change the keybindings in your ~/.config/openbox/zentile/conf.toml file.

2
  • Although configuring your own OpenBox is great (and that's what I recommend), there are Linux distributions that provide pre-configured versions of OpenBox: Viperr based on Fedora has pytyle by default, Mabox based on Manjaro, BunsenLabs based on Debian... – user382051 Mar 22 '20 at 13:11
  • zentil works very well! Thank for the anwser, I'll have a look at those distros. – user400679 Mar 22 '20 at 13:26
0

It is actually sort of possible using Openbox. In this setup (put in rc.xml) I have Alt+keypad move the active window to the cardinal positions, and Alt+KP5 to maximize it, and Alt+KP0 to minimize the window:

<!-- Keybindings for tiling -->
<keybind key="A-KP_5">
  <action name="ToggleMaximize"/>
</keybind>
<keybind key="A-KP_0">
  <action name="Iconify"/>
</keybind>
<keybind key="A-KP_4">
  <action name="Unmaximize"/>
  <action name="MoveResizeTo">
    <x>0</x>
    <y>0</y>
    <width>50%</width>
    <height>100%</height>
  </action>
</keybind>
<keybind key="A-KP_6">
  <action name="Unmaximize"/>
  <action name="MoveResizeTo">
    <x>-0</x>
    <y>0</y>
    <width>50%</width>
    <height>100%</height>
  </action>
</keybind>
<keybind key="A-KP_8">
  <action name="Unmaximize"/>
  <action name="MoveResizeTo">
    <x>0</x>
    <y>0</y>
    <width>100%</width>
    <height>50%</height>
  </action>
</keybind>
<keybind key="A-KP_2">
  <action name="Unmaximize"/>
  <action name="MoveResizeTo">
    <x>0</x>
    <y>-0</y>
    <width>100%</width>
    <height>50%</height>
  </action>
</keybind>
<keybind key="A-KP_7">
  <action name="Unmaximize"/>
  <action name="MoveResizeTo">
    <x>0</x>
    <y>0</y>
    <width>50%</width>
    <height>50%</height>
  </action>
</keybind>
<keybind key="A-KP_9">
  <action name="Unmaximize"/>
  <action name="MoveResizeTo">
    <x>-0</x>
    <y>0</y>
    <width>50%</width>
    <height>50%</height>
  </action>
</keybind>
<keybind key="A-KP_1">
  <action name="Unmaximize"/>
  <action name="MoveResizeTo">
    <x>0</x>
    <y>-0</y>
    <width>50%</width>
    <height>50%</height>
  </action>
</keybind>
<keybind key="A-KP_3">
  <action name="Unmaximize"/>
  <action name="MoveResizeTo">
    <x>-0</x>
    <y>-0</y>
    <width>50%</width>
    <height>50%</height>
  </action>
</keybind>

References and further reading:

There's more in this gist, which is from a post I wrote (which also talks about some other similar keybinds), which was inspired by a post by Thomas Hunter.

3
  • 4
    The post on ideatrash.net that you link to appears to be your own. Please be aware that not disclosing your affiliation is considered spam. Please read:: How to not be a spammer. – Robert Columbia May 1 '20 at 19:34
  • @RobertColumbia not when the link is just an afterthought and the relevant information is included here! You could suggest an edit adding a changing "this post" to "my post" if you want, but given that all the information is here, and Steven isn't suggesting his own tool, simply linking to a post he wrote which has more information, I see no issue at all. – terdon May 2 '20 at 11:40
  • My apologies; I was trying to avoid seeming like I was bragging. Thank you @terdon for the edit to fix my mistake. – Steven Saus May 2 '20 at 20:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy