2

Lubuntu 19.10 uses Openbox as its window manager.

For Lubuntu 18.04 and 19.04, the file that allowed users to edit various Openbox settings, lubuntu-rc.xml and lxqt-rc.xml, respectively, has a section titled "Keybindings for window tiling" with keyboard shortcuts for

  • HalfLeftScreen
  • HalfRightScreen
  • HalfUpperScreen and
  • HalfLowerScreen

That section is missing in ~/.config/openbox/lxqt-rc.xml of Lubuntu 19.10.

I followed the instructions in the release notes to delete

  • ~/.config/lxqt/globalkeyshortcuts.conf
  • ~/.config/lxqt/lxqt-runner.conf and
  • ~/.config/openbox/lxqt-rc.xml

and to log out and log back in. However, lxqt-rc.xml still doesn't have the window tiling section.

I understand that there have been some conflicts with how the Super also known as Meta key conflicted somehow with LXQt. (All the window tiling keyboard shortcuts originally used the Super key.)

What can users of Lubuntu 19.10 do to get back "window tiling" keyboard shortcuts?

2

In How to snap windows?, a member of the Lubuntu team suggests including some code in lxqt-rc.xml to bring back window tiling and also addresses the conflict I mentioned in the question:

... in 19.04+, you’ll run into conflicts with lxqt-globalkeys using the key to open the menu, so either disable that, reconfigure that, or use something other than the Windows key here.


If one wants the same tiling shortcuts that were used in Lubuntu 19.04, here they are in a somewhat modified form. I've included using the Control key together with the Super key and the relevant arrow key instead of just the Super key and the relevant arrow key:

    <!--
        Lubuntu specific.
        Keybindings for window tiling
    -->
    <!--
        # HalfLeftScreen
    -->
  <keybind key="C-W-Left">
    <action name="UnmaximizeFull"/>
    <action name="MoveResizeTo">
      <x>0</x>
      <y>0</y>
      <height>100%</height>
      <width>50%</width>
    </action>
  </keybind>
    <!--
        # HalfRightScreen
    -->
  <keybind key="C-W-Right">
    <action name="UnmaximizeFull"/>
    <action name="MoveResizeTo">
      <x>-0</x>
      <y>0</y>
      <height>100%</height>
      <width>50%</width>
    </action>
  </keybind>
    <!--
        # HalfUpperScreen
    -->
  <keybind key="C-W-Up">
    <action name="UnmaximizeFull"/>
    <action name="MoveResizeTo">
      <x>0</x>
      <y>0</y>
      <width>100%</width>
      <height>50%</height>
    </action>
  </keybind>
    <!--
        # HalfLowerScreen
    -->
  <keybind key="C-W-Down">
    <action name="UnmaximizeFull"/>
    <action name="MoveResizeTo">
      <x>0</x>
      <y>-0</y>
      <width>100%</width>
      <height>50%</height>
    </action>
  </keybind>

After the edits, open a terminal and run openbox --reconfigure for the keybinding to take effect. Alternatively, log out and log back in.


I didn't include keyboard shortcuts for maximizing or minimizing windows because these actions and many others can easily be accessed by pressing Alt+Spacebar. Note that Openbox prefers to use iconify instead of minimize.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.