3

I've went through this interesting thread: Lubuntu 19.10 & 20.04: How to tile windows? The window tiling section is missing in lxqt-rc.xml Lubuntu 19.10 & 20.04: How to tile windows? The window tiling section is missing in lxqt-rc.xml.

It works perfectly for Super+Right / Super+Up / Super+Down, but is not functionnal for Super+Left. Note that the command openbox --reconfigure does not change the situation.

Here is the extract of lxqt-rc.xml. Does anybody have an idea why Super+Left is not functionnal ?

    <keybind key="W-Left">
        <action name="UnmaximizeFull"/>
        <action name="MaximizeVert"/>
        <action name="MoveResizeTo">
            <width>50%</width>
        </action>
        <action name="MoveToEdge"><direction>west</direction></action>
    </keybind>
    <keybind key="W-Right">
        <action name="UnmaximizeFull"/>
        <action name="MaximizeVert"/>
        <action name="MoveResizeTo">
            <width>50%</width>
        </action>
        <action name="MoveToEdge"><direction>east</direction></action>
    </keybind>
    <keybind key="W-Down">
       <action name="Unmaximize"/>
    </keybind>
    <keybind key="W-Up">
       <action name="Maximize"/>
    </keybind>
7
  • Where did you get your code from? It is not the code in the linked Q&A.
    – DK Bose
    Jun 1, 2020 at 14:03
  • I went through dozen of websites. I tried the above code from askubuntu.com/questions/1245776/….
    – pyOliv
    Jun 1, 2020 at 14:07
  • 2
    oops, here is the link with the code: discourse.lubuntu.me/t/how-to-snap-windows/247 (hope this is correct to post a link out of SO ?)
    – pyOliv
    Jun 1, 2020 at 14:56
  • 1
    The Super+Left combo in that code works for me. I don't know why it isn't working for you. Sorry!
    – DK Bose
    Jun 1, 2020 at 15:39
  • I've noticed stange behavious. 1s point: all the shortcuts were disabled after a reboot, the later open --reconfigure command did not bring them back. 2nd point: I've changer the key to add control (e.g. C-W-Left). The shortcut C-W-Right was not functionnal !! Is there any additionnal shortcut application that is taking over openbox ?
    – pyOliv
    Jun 2, 2020 at 11:13

1 Answer 1

0

I've posted on discourse.ubuntu.me, and finally found the answer : https://discourse.lubuntu.me/t/how-to-resize-windows-using-hot-keys-to-fill-50-of-the-screen/1189 :

The instruction <keybind key="W-Right"> was not working. I had to use <keybind key="Super-Right"> instead. In my first message, I was mixing Super and W. For some reason, the 2 keys are not the same.

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.