From 0bb7926e68b93ee039f657ce12d612a38649ddde Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Tue, 22 Jul 2014 01:45:06 +0300 Subject: [PATCH] Update README and man page with better JWM instructions --- README | 47 +++++++++----------------------------------- man/xdgmenumaker.t2t | 44 ++++++++--------------------------------- 2 files changed, 17 insertions(+), 74 deletions(-) diff --git a/README b/README index 3413cb2..1e8fcd4 100644 --- a/README +++ b/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: exec: xdgmenumaker -n -i -f jwm -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 - $HOME/.jwm_xdg_menu +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. + jwm -reload -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 - -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 diff --git a/man/xdgmenumaker.t2t b/man/xdgmenumaker.t2t index 624dfbd..313fff1 100644 --- a/man/xdgmenumaker.t2t +++ b/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: ``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. +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: - -``$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`` - -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. +``jwm -reload`` : **pekwm**