Normally the menu tag (<menu></menu>) is used for launching a menu with a keybinding. I apologize for erroneously advising a command (lxpanelctl menu) between menu tags above, which, of course, does nothing. In general, the correct entry to put between the menu tags is the menu
id in the .xml file for the desired menu, provided that menu has an .xml file in your system. Unfortunately, LXDE menu does not normally include an .xml copy, but does have a .menu file (/etc/xdg/menus/lxde-applications.menu). Any .menu file can be loaded into the Openbox Menu (root-menu) and from there launched with a keybind. You are required to install a small tool,
openbox-menu, to accomplish this end. Put the following into
~/.config/openbox/menu.xml, wherever you want the lxde-menu to appear:
Code: Select all
<menu execute="/usr/bin/openbox-menu lxde-applications.menu" id="desktop-app-menu-lxde" label="LxdeApplications" icon="/usr/share/icons/applications.png" />
, where you can use any icon or label that you like and where id="desktop-app-menu-lxde" can be changed to id="desktop-app-menu-*" for any "*-applications.menu " present in your computer (for example, xfce4-applications.menu).
Then put the following into the applications section of
~/.config/openbox/rc.xml:
Code: Select all
<keybind key="C-A-l">
<action name="ShowMenu">
<menu>desktop-app-menu-lxde</menu>
</action>
</keybind>
,
or use your favorite unused key combination in place of control+alternate+l.
For more details, see
http://lxlinux.com/openbox.html#8.
The disadvantage of using the command "lxpanelctl menu" to launch the lxde menu is that it requires lxpanel be installed, open and have the menu icon on it. And it only launches the menu above that icon. Replace lxpanel and you lose any keybinding based upon lxpanelctl.