1ICEWM-MENU(5)         Standards, Environments and Macros         ICEWM-MENU(5)
2
3
4

NAME

6        icewm-menu - icewm menu configuration file
7

SYNOPSIS

9        $ICEWM_PRIVCFG/menu
10        $XDG_CONFIG_HOME/icewm/menu
11        $HOME/.icewm/menu
12        /etc/icewm/menu
13        /usr/share/icewm/menu
14

DESCRIPTION

16       The menu file is responsible for configuring most of the icewm(1) root
17       menu and start menu.
18
19       A menu of applications; usually customized by the user.  icewm provides
20       the icewm-menu-fdo(1) program to generate a default menu.  Similar
21       programs are xdg_menu(1), mmaker(1) (MenuMaker), xde-menu(1),
22       xdgmenumaker(1).
23

FORMAT

25       The format of the file contains one of the following line syntax:
26
27       prog ["]title["] icon program options
28           Specifies a program to execute when the menu item is selected.
29
30       restart ["]title["] icon program options
31           Specifies a program to replace the window manager when the menu
32           item is selected.  This is for launching other window managers from
33           within icewm(1).
34
35       runonce ["]title["] icon "[res_name][.res_class]" program options
36           Specifies a program to execute when the menu item is selected;
37           however, if a window of the specified res_name and res_class is
38           present, the program will not be run again.
39
40       menu ["]title["] icon { # contained items }
41           Specifies a sub-menu.  The lines that appear between the braces can
42           be any menu item described here.
43
44       menufile ["]title["] icon ["]filename["]
45           Specifies a file from which to collect sub-menu items (lines) and
46           place them at this point in the menu.
47
48       menuprog ["]title["] icon program options
49           Specifies a program that will print sub-menu items on standard
50           output and will be collected and placed in the sub-menu at this
51           point.
52
53       menuprogreload ["]title["] icon timeout program options
54           Similar to menuprog, but after at least timeout seconds the menu is
55           regenerated.
56
57       include ["]filename["]
58           Read additional entries from the file filename
59
60       includeprog program options
61           Read additional entries from the output of program options.
62
63       separator
64           A separator for menu items.
65
66       Where
67
68       prog, restart, runonce, menu, menufile, menuprog, menuprogreload,
69       include, includeprog, separator
70           These are literal string keywords.
71
72       ["]title["]
73           This is the title string associated with the menu item which is
74           displayed in the menu.  When the title contains spaces, the title
75           must be surrounded by double quotes ("""), although the title may
76           always be surrounded by double quotes if preferred.
77
78       icon
79           Is the name of the icon file (with or without extension) or the
80           full path to an icon file.
81
82       "[res_name][.res_class]"
83           res_name is the resource name of a window launched by program and
84           res_class is the resource class of the window.  Only one of
85           res_name or res_class need be specified.  This is used to identify
86           whether the program is already running and is for use with the
87           runonce keyword.
88
89       program options
90           program is the name of the executable or full path to the
91           executable file that will be run in response to selecting the menu
92           item.  When used with the menuprog keyword, the program must print
93           on standard output the contents of the menu and is used for dynamic
94           menus.
95
96           options is the options and arguments passed to the program
97           verbatim.
98
99       filename
100           filename is the name of the file relative to one of the icewm(1)
101           configuration directories, or the full path to a file.  The file is
102           used with the menufile keyword and specifies the file from which to
103           read further menu items.
104

EXAMPLES

106       Following is the example menu file that ships with icewm(1):
107
108        # This is an example for IceWM's menu definition file.
109        #
110        # Place your variants in @CFGDIR@ or in $HOME/.icewm
111        # since modifications to this file will be discarded when you
112        # (re)install icewm.
113        #
114        prog xterm xterm xterm
115        prog rxvt xterm rxvt -bg black -cr green -fg white -C -fn 9x15 -sl 500
116        prog fte fte fte
117        prog NEdit nedit nedit
118        prog Mozilla mozilla mozilla
119        prog XChat xchat xchat
120        prog Gimp gimp gimp
121        separator
122        menuprog "Desktop Apps" folder icewm-menu-fdo
123        menufile Programs folder programs
124        menufile Tool_bar folder toolbar
125

FILES

127       Locations for the menu file are as follows:
128
129        $ICEWM_PRIVCFG/menu
130        $XDG_CONFIG_HOME/icewm/menu
131        $HOME/.icewm/menu
132        /etc/icewm/menu
133        /usr/share/icewm/menu
134
135       The locations are searched in the order listed; the first file found is
136       read and the remainder ignored.
137

SEE ALSO

139       icewm(1), icewm-menu-fdo(1).
140

AUTHOR

142       Brian Bidulock <mailto:bidulock@openss7.org>.
143

LICENSE

145       IceWM is licensed under the GNU Library General Public License.  See
146       the COPYING file in the distribution.
147
148
149
150icewm 2.3.0                       2021-04-02                     ICEWM-MENU(5)
Impressum