|
@ -303,16 +303,25 @@ refresh the menu, like this: |
|
|
|
|
|
|
|
|
: **Openbox** |
|
|
: **Openbox** |
|
|
|
|
|
|
|
|
To generate an application menu for Openbox, run **xdgmenumaker** like this: |
|
|
**xdgmenumaker** creates pipe-menus for Openbox, which are, by definition, |
|
|
|
|
|
dynamic menus. The simplest way to have an auto-generated "Applications" |
|
|
|
|
|
submenu in the main Openbox menu, you can just add a line like the following |
|
|
|
|
|
one somewhere inside the //<menu id="root-menu">// in your |
|
|
|
|
|
//~/.config/openbox/menu.xml// file:: |
|
|
|
|
|
|
|
|
``$ xdgmenumaker -f openbox > ~/.cache/openbox/apps.menu`` |
|
|
``<menu execute="xdgmenumaker -i -f openbox" id="xdg-pipe-menu" label="Applications"/>`` |
|
|
|
|
|
|
|
|
or if you want icons in your menu: |
|
|
This menu will be generated every time you open the Openbox menu, so it will |
|
|
|
|
|
always be up-to-date. |
|
|
|
|
|
|
|
|
``$ xdgmenumaker -i -f openbox > ~/.cache/openbox/apps.menu`` |
|
|
Alternatively, you can create a static menu, which you can then include |
|
|
|
|
|
through a pipe-menu in your main menu too. To do that, run |
|
|
|
|
|
**xdgmenumaker** like this: |
|
|
|
|
|
|
|
|
|
|
|
``$ xdgmenumaker -f openbox > ~/.cache/openbox/apps.menu`` |
|
|
|
|
|
|
|
|
and you can then edit your //~/.config/openbox/menu.xml// file and add this |
|
|
and you can then edit your //~/.config/openbox/menu.xml// file and add this |
|
|
line somewhere in the //<menu id="root-menu" label="Openbox 3">// section: |
|
|
line somewhere in the //<menu id="root-menu">// section: |
|
|
|
|
|
|
|
|
``<menu execute="cat ~/.cache/openbox/apps.menu" id="applications-pipe-menu" label="Applications"/>`` |
|
|
``<menu execute="cat ~/.cache/openbox/apps.menu" id="applications-pipe-menu" label="Applications"/>`` |
|
|
|
|
|
|
|
|