Fluxbox menu: open two programs at once

Sometimes we need to open always two programs at once. For example I always need to open “navit” and restart “gpsd” at the same time in order to make navit receives gps signal from gps-bluetooth-dongle (if gps dongle is turned on at a later time).

Fortunately this can be easily done in fluxbox. Just modify the existing navit menu line in “~/.fluxbox/menu” from:

[exec] (navit) {/usr/bin/navit} </usr/share/pixmaps/navit.xpm>


[exec] (navit) {/usr/bin/navit & sudo /etc/init.d/gpsd restart} </usr/share/pixmaps/navit.xpm>

By using ampersand (&) you can add another command to start different program.

That’s it!