1

I'd like to use several custom keybindings to handle windows more effectively. So I copied the rc.xml from /etc/xdg/openbox/ to ~/.config/openbox/ and edited the relevant (<keyboard>) section of the copy. In order to see how it works, I added the following simplest fragment:

<keybind key="W-Up">
    <action name="Maximize"/>
</keybind>

What do I do next? I have tried «openbox --reconfigure», «openbox --configure ~/.config/openbox/rc.xml», «openbox --replace», even combinations of these parameters to no avail (rebooting did not help either).

P. S. I use Lubuntu 20.04 x64.

S. N.
  • 375

2 Answers2

2

The solution was found. The credit for it goes entirely to @DK Bose. Here are three items that sum up our lengthy exchange of comments:

  1. the file to edit is ~/.config/openbox/lxqt-rc.xml (if it does not exist, it should be copied from /etc/xdg/openbox)
  2. hotkeys like Win-Left, Win-Up and so on do not work in LXQt (see the Lubuntu manual); one should stick with alternatives, for example, Ctrl-Win-Left and the likes or some thing else;
  3. the xml blocks for specific bindings should not be the first lines after the opening <keyboard> tag (it is failproof to put them at the end of the keyboard binding section, i. e. right before </keyboard>).
S. N.
  • 375
0

hotkeys like Win-Left, Win-Up and so on do not work in LXQt (see the Lubuntu manual);

That's not true. W-Left and W-Up work, if in the LXQt-Settings in the Shortcut Keys "Show/hide main menu" is deactivated, or "Show/hide main menu" is set to something else than W, like for example W+Y.