Browse Source

Update README and man page with better JWM instructions

pull/3/merge
George Vlahavas 10 years ago
parent
commit
0bb7926e68
  1. 47
      README
  2. 44
      man/xdgmenumaker.t2t

47
README

@ -69,54 +69,25 @@ 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:
applications menu, like this:
<Include>exec: xdgmenumaker -n -i -f jwm</Include>
You need to put that line somewhere in the "RootMenu" section of the
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.
You can update the menu with:
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:
$ jwm -reload
<Include>$HOME/.jwm_xdg_menu</Include>
Or you can restart JWM and the updated menu should appear. The menu will be
recreated every time JWM is started, restarted, or when the menu is
reloaded with the above command. You can even add a menu item that will
refresh the menu, like this:
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.
<Program label="Refresh Menu">jwm -reload</Program>
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:
<Program label="Update JWM Menu">xdgmenumaker -n -i -f jwm > ~/.jwm_xdg_menu</Program>
Restart jwm and the generated menu should appear. The menu is static
and if you add/remove any applications, you will have to run the
xdgmenumaker command and restart jwm all over again to update it. The
advantage is that there will be no delay in displaying the menu.
=====
pekwm

44
man/xdgmenumaker.t2t

@ -130,52 +130,24 @@ 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:
applications menu, like this:
``<Include>exec: xdgmenumaker -n -i -f jwm</Include>``
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.
You can update the menu with:
**Static Menus**
``$ jwm -reload``
To generate an application menu for JWM, you can run
**xdgmenumaker** like this:
Or you can restart JWM and the updated menu should appear. The menu will be
recreated every time JWM is started, restarted, or when the menu is
reloaded with the above command. You can even add a menu item that will
refresh the menu, 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:
``<Include>$HOME/.jwm_xdg_menu</Include>``
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:
``<Program label="Update JWM Menu">xdgmenumaker -n -i -f jwm > ~/.jwm_xdg_menu</Program>``
Restart JWM and the generated menu should appear. The menu is static
and if you add/remove any applications, you will have to run the
xdgmenumaker command and restart JWM all over again to update it. The
advantage is that there will be no delay in displaying the menu.
``<Program label="Refresh Menu">jwm -reload</Program>``
: **pekwm**

Loading…
Cancel
Save