Browse Source

Update documentation for openbox

Include info about generating a dynamic pipe-menu.
master
George Vlahavas 5 months ago
parent
commit
7ffc395db0
  1. 15
      README.md
  2. 19
      man/xdgmenumaker.t2t

15
README.md

@ -212,7 +212,20 @@ refresh the menu, like this:
Openbox Openbox
------- -------
You can create pipe menus for Openbox running 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::
<menu execute="xdgmenumaker -i -f openbox" id="xdg-pipe-menu" label="Applications"/>
This menu will be generated every time you open the Openbox menu, so it will
always be up-to-date.
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 $ xdgmenumaker -f openbox > ~/.cache/openbox/apps.menu

19
man/xdgmenumaker.t2t

@ -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"/>``

Loading…
Cancel
Save