From b3a162c406657415a69ba1d0306b737bbd894bef Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Mon, 21 Jul 2014 22:47:57 +0300 Subject: [PATCH] Add JWM info in manpage --- man/xdgmenumaker.t2t | 51 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/man/xdgmenumaker.t2t b/man/xdgmenumaker.t2t index ae838eb..54e4c70 100644 --- a/man/xdgmenumaker.t2t +++ b/man/xdgmenumaker.t2t @@ -28,7 +28,7 @@ The menu entries that are generated by **xdgmenumaker** are localised according to the running user locale settings. **xdgmenumaker** currently supports generating menus for //fluxbox//, -//icewm//, //pekwm// and //windowmaker//. +//icewm//, //jwm//, //pekwm// and //windowmaker//. pyxdg and pygtk are required by **xdgmenumaker**, in addition to python 2. @@ -37,8 +37,8 @@ pyxdg and pygtk are required by **xdgmenumaker**, in addition to python 2. : **-f, --format** specify the output format to use. Valid options are //fluxbox//, -//icewm//, //pekwm// and //windowmaker//. Specifying the output format is -mandatory. +//icewm//, //jwm//, //pekwm// and //windowmaker//. Specifying the output +format is mandatory. : **-i, --icons** enable support for icons in the menus. This option does not have any @@ -128,6 +128,51 @@ to a non existing icon, you essentially set it to use no icon. If you actually have an icewm icon named "_none_", that one will be used instead. +: **JWM** + +There are two ways to have an XDG menu in JWM. The first one, +auto-updates the menu, every time the menu is called. The second one, +updates the menu only when the user wants to. + +**Dynamic Menus** + +You can edit your //~/.jwmrc// file and add a line that generates the +applications menu on the fly, like this: + +``exec: xdgmenumaker -n -i -f jwm`` + +You need to put that line somewhere in the //RootMenu// section of the +//~/.jwmrc// file. + +Restart JWM and the generated menu should appear. The menu will be +automatically generated every time you access it, so it will always be +up to date. But since xdgmenumaker will run every time you access the +menu, the menu might not appear instantly, especially if you are using +an older PC. + +**Static Menus** + +To generate an application menu for JWM, you can run +**xdgmenumaker** like this: + +``$ xdgmenumaker -n -i -f jwm > ~/.jwm_xdg_menu`` + +and then change your //~/.jwmrc// to include this file as a +submenu. For example, add this somewhere in the //RootMenu// section: + +``$HOME/.jwm_xdg_menu`` + +Note the use of the //$HOME// variable. JWM doesn't seem to support the +//~// symbol to specify the user's home directory when including files. + +You can add the **xdgmenumaker** command as another item in your menu, +if you want to update it, without having to run the command manually +again, by adding a line like this in the //RootMenu// section of your +//~/.jwmrc// file: + +``xdgmenumaker -n -i -f jwm > ~/.jwm_xdg_menu`` + + : **pekwm** There are two ways to have an XDG menu in pekwm. The first one,