How to create a launcher in the tray bar

Sometimes it is useful to have an icon in the tray bar that launches our favorite programs. For doing this you have to modify the file /root/.jwmrc-tray . If you want to add gexec, for example, you have to add this line:

<TrayButton popup="Gexec" icon="gexec.xpm">exec:gexec</TrayButton>

You should note that the icon gexec.xpm must exist in /usr/local/lib/X11/mini-icons. It is not necessary to insert the whole path. If you insert the whole path the icon doesn't show up.

The application that have to be run must be put after the exec command.