NAME
icewm-programs - icewm programs configuration file
SYNOPSIS
$ICEWM_PRIVCFG/programs$XDG_CONFIG_HOME/icewm/programs$HOME/.icewm/programs/usr/etc/icewm/programs/usr/share/icewm/programs
DESCRIPTION
The programs file is an automatically generated menu configuration file of installed programs. This file should be automatically generated by xdg_menu, wmconfig (Redhat), menu (Debian), or icewm-menu-fdo, perhaps as part of the login or X startup sequence.
FORMAT
The format of the file contains one of the following line syntax:
- prog "title" icon program options
-
Specifies a program to execute when the menu item is selected.
- restart "title" icon program options
-
Specifies a program to replace the window manager when the menu item is selected. This is for launching other window managers from within icewm(1).
- runonce "title" icon "[name][.class]" program options
-
Specifies a program to execute when the menu item is selected; however, if a window of the specified name and class is present, the program will not be run again.
- menu "title" icon { # contained items }
-
Specifies a sub-menu. The lines that appear between the braces can be any menu item described here.
- menufile "title" icon "filename"
-
Specifies a file from which to collect sub-menu items (lines) and place them at this point in the menu.
- menuprog "title" icon program options
-
Specifies a program that will print sub-menu items on standard output and will be collected and placed in the sub-menu at this point.
- menuprogreload "title" icon timeout program options
-
Similar to menuprog, but after at least timeout seconds the menu is regenerated.
- include "filename"
-
Read additional entries from the file filename
- includeprog program options
-
Read additional entries from the output of program options.
- separator
-
A separator for menu items.
Where
- prog, restart, runonce, menu, menufile, menuprog, menuprogreload, include, includeprog, separator
-
These are literal string keywords.
- "title"
-
This is the title string associated with the menu item that is displayed in the menu. When the title contains spaces, the title must be surrounded by double quotes (
""").
- icon
-
Is the name of the icon file (with or without extension) or the full path to an icon file.
- "[name][.class]"
-
name is the resource name of a window launched by program and class is the resource class of the window. Only one of name or class need be specified. This is used to determine whether the program is already running. It is used with the runonce keyword.
- program options
-
program is the name of the executable or full path to the executable file that will be run in response to selecting the menu item. When used with the menuprog keyword, the program must print on standard output the contents of the menu and is used for dynamic menus.
options is the options and arguments passed to the program verbatim.
- filename
-
filename is the name of the file relative to one of the icewm(1) configuration directories, or the full path to a file. The file is used with the menufile keyword and specifies the file from which to read further menu items.
EXAMPLES
Following is the example programs file that ships with icewm(1):
# This file is intended to be customized by the distributions.# (they should place it in /etc/X11/icewm)## mostly obsolete, fixmemenu Editors folder {prog vim vim gvimprog emacs emacs emacsprog Lyx emacs lyx}menu "WWW" folder {prog Galeon galeon galeonprog Arena arena arenaprog Lynx lynx xterm -e lynxprog Links lynx xterm -e links}menu "Document Viewers" folder {prog "DVI Previewer" xdvi xdviprog "Ghostview" ghostview gv}menu Graphics folder {prog Gimp gimp gimpprog XV xv xvprog XPaint xpaint xpaintprog XFig xfig xfig}menu Games folder {prog Xboard xboard xboardprog "Tux Racer" tuxracer tuxracer}menu System folder {prog "Control Panel" redhat control-panel}menu Utilities folder {prog XPlayCD xplaycd xplaycdprog XMixer xmixer xmixerprog Clock xclock xclockprog Magnify xmag xmagprog Calculator xcalc xcalcprog Colormap xcolormap xcmapprog Clipboard xclipboard xclipboardprog xkill bomb xkillprog xload xload xloadprog xosview xosview xosviewseparatorprog "Screen Saver" xlock xlock -nolockprog "Screen Lock" xlock xlock}menu "Window Managers" folder {restart icewm - icewmrestart metacity - metacityrestart wmaker - wmakerrestart fluxbox - fluxboxrestart blackbox - blackboxrestart enlightenment - enlightenmentrestart fvwm2 - fvwm2restart fvwm - fvwmrestart sawfish - sawfishrestart sawfish2 - sawfish2}
FILES
Locations for the programs file are as follows:
$ICEWM_PRIVCFG/programs$XDG_CONFIG_HOME/icewm/programs$HOME/.icewm/programs/usr/etc/icewm/programs/usr/share/icewm/programs
The locations are searched in the order listed; the first file found is read and the remainder ignored.
SEE ALSO
AUTHOR
Brian Bidulock <mailto:[email protected]>.
LICENSE
IceWM is licensed under the GNU Library General Public License. See the COPYING file in the distribution.