Debian Codegraph @

upstream/opensuse-leap-16-1/man5/icewm-menu.5

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\"
56 .\" Required to disable full justification in groff 1.23.0.
57 .if n .ds AD l
58 .\" ========================================================================
59 .\"
60 .IX Title "ICEWM-MENU 5"
61 .TH ICEWM-MENU 5 2024-06-16 "icewm 3.6.0" "Standards, Environments and Macros"
62 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
63 .\" way too many mistakes in technical documents.
64 .if n .ad l
65 .nh
66 .SS NAME
67 .IX Subsection "NAME"
68 .Vb 1
69 \& icewm\-menu \- icewm menu configuration file
70 .Ve
71 .SS SYNOPSIS
72 .IX Subsection "SYNOPSIS"
73 .Vb 5
74 \& $ICEWM_PRIVCFG/menu
75 \& $XDG_CONFIG_HOME/icewm/menu
76 \& $HOME/.icewm/menu
77 \& /etc/icewm/menu
78 \& /usr/share/icewm/menu
79 .Ve
80 .SS DESCRIPTION
81 .IX Subsection "DESCRIPTION"
82 The \fImenu\fR file is responsible for configuring most of the \fBicewm\fR\|(1)
83 root menu and start menu.
84 .PP
85 A menu of applications; usually customized by the user. \fBicewm\fR
86 provides the \fBicewm\-menu\-fdo\fR\|(1) program to generate a default menu.
87 Similar programs are \fBxdg_menu\fR\|(1), \fBmmaker\fR\|(1) (MenuMaker),
88 \&\fBxde\-menu\fR\|(1), \fBxdgmenumaker\fR\|(1).
89 .SS FORMAT
90 .IX Subsection "FORMAT"
91 The file contains lines with the following syntax:
92 .IP "\fBprog\fR [\fB""\fR]\fItitle\fR[\fB""\fR] \fIicon\fR \fIprogram\fR \fIoptions\fR" 4
93 .IX Item "prog [""]title[""] icon program options"
94 Specifies a program to execute when the menu item is selected.
95 .IP "\fBrestart\fR [\fB""\fR]\fItitle\fR[\fB""\fR] \fIicon\fR \fIprogram\fR \fIoptions\fR" 4
96 .IX Item "restart [""]title[""] icon program options"
97 Specifies a program to replace the window manager when the menu item is
98 selected. This is for launching other window managers from within
99 \&\fBicewm\fR\|(1).
100 .IP "\fBrunonce\fR [\fB""\fR]\fItitle\fR[\fB""\fR] \fIicon\fR \fB""\fR[\fIres_name\fR][\fB.\fR\fIres_class\fR]\fB""\fR \fIprogram\fR \fIoptions\fR" 4
101 .IX Item "runonce [""]title[""] icon ""[res_name][.res_class]"" program options"
102 Specifies a program to execute when the menu item is selected; however,
103 if a window of the specified \fIres_name\fR and \fIres_class\fR is present,
104 the program will not be run again.
105 .IP "\fBmenu\fR [\fB""\fR]\fItitle\fR[\fB""\fR] \fIicon\fR \fB{\fR # contained items \fB}\fR" 4
106 .IX Item "menu [""]title[""] icon { # contained items }"
107 Specifies a sub\-menu. The lines that appear between the braces can be
108 any menu item described here.
109 .IP "\fBmenufile\fR [\fB""\fR]\fItitle\fR[\fB""\fR] \fIicon\fR [\fB""\fR]\fIfilename\fR[\fB""\fR]" 4
110 .IX Item "menufile [""]title[""] icon [""]filename[""]"
111 Specifies a file from which to collect sub\-menu items (lines) and place
112 them at this point in the menu.
113 .IP "\fBmenuprog\fR [\fB""\fR]\fItitle\fR[\fB""\fR] \fIicon\fR \fIprogram\fR \fIoptions\fR" 4
114 .IX Item "menuprog [""]title[""] icon program options"
115 Specifies a program that will print sub\-menu items on standard output,
116 which will be collected and placed in the sub\-menu at this point.
117 .IP "\fBmenuprogreload\fR [\fB""\fR]\fItitle\fR[\fB""\fR] \fIicon\fR \fItimeout\fR \fIprogram\fR \fIoptions\fR" 4
118 .IX Item "menuprogreload [""]title[""] icon timeout program options"
119 Similar to \fBmenuprog\fR, but after at least \fItimeout\fR seconds
120 the menu is regenerated.
121 .IP "\fBinclude\fR [\fB""\fR]\fIfilename\fR[\fB""\fR]" 4
122 .IX Item "include [""]filename[""]"
123 Read additional entries from the file \fIfilename\fR
124 .IP "\fBincludeprog\fR \fIprogram\fR \fIoptions\fR" 4
125 .IX Item "includeprog program options"
126 Read additional entries from the output of \fIprogram\fR \fIoptions\fR.
127 .IP \fBseparator\fR 4
128 .IX Item "separator"
129 A separator for menu items.
130 .PP
131 Where
132 .IP "\fBprog\fR, \fBrestart\fR, \fBrunonce\fR, \fBmenu\fR, \fBmenufile\fR, \fBmenuprog\fR, \fBmenuprogreload\fR, \fBinclude\fR, \fBincludeprog\fR, \fBseparator\fR" 4
133 .IX Item "prog, restart, runonce, menu, menufile, menuprog, menuprogreload, include, includeprog, separator"
134 These are literal string keywords.
135 .IP "[\fB""\fR]\fItitle\fR[\fB""\fR]" 4
136 .IX Item "[""]title[""]"
137 This is the \fItitle\fR string associated with the menu item that is
138 displayed in the menu. When the \fItitle\fR contains spaces, the title
139 must be surrounded by double quotes (\f(CW\*(C`\*(C'\fR).
140 .IP \fIicon\fR 4
141 .IX Item "icon"
142 Is the name of the icon file (with or without extension) or the full
143 path to an icon file.
144 .IP "\fB""\fR[\fIres_name\fR][\fB.\fR\fIres_class\fR]\fB""\fR" 4
145 .IX Item """[res_name][.res_class]"""
146 \&\fIres_name\fR is the resource name of a window launched by \fIprogram\fR and
147 \&\fIres_class\fR is the resource class of the window. Only one of
148 \&\fIres_name\fR or \fIres_class\fR need be specified. This is used to identify
149 whether the program is already running and is for use with the
150 \&\fBrunonce\fR keyword.
151 .IP "\fIprogram\fR \fIoptions\fR" 4
152 .IX Item "program options"
153 \&\fIprogram\fR is the name of the executable or full path to the executable
154 file that will be run in response to selecting the menu item.
155 When used with the \fBmenuprog\fR keyword, the \fIprogram\fR must print on
156 standard output the contents of the menu and is used for dynamic menus.
157 .Sp
158 \&\fIoptions\fR are the options and arguments passed to the \fIprogram\fR
159 verbatim.
160 .IP \fIfilename\fR 4
161 .IX Item "filename"
162 \&\fIfilename\fR is the name of the file relative to one of the \fBicewm\fR\|(1)
163 configuration directories, or the full path to a file. The file is used
164 with the \fBmenufile\fR keyword and specifies the file from which to read
165 further menu items.
166 .SS EXAMPLES
167 .IX Subsection "EXAMPLES"
168 Following is the example \fImenu\fR file that ships with \fBicewm\fR\|(1):
169 .PP
170 .Vb 10
171 \& # This is an example for IceWM\*(Aqs menu definition file.
172 \& #
173 \& # Place your variants in /etc/icewm or in $HOME/.icewm
174 \& # since modifications to this file will be discarded when you
175 \& # (re)install icewm.
176 \& #
177 \& prog xterm xterm xterm
178 \& prog rxvt xterm rxvt \-bg black \-cr green \-fg white \-C \-fn 9x15 \-sl 500
179 \& prog fte fte fte
180 \& prog NEdit nedit nedit
181 \& prog Mozilla mozilla mozilla
182 \& prog XChat xchat xchat
183 \& prog Gimp gimp gimp
184 \& separator
185 \& menuprog "Desktop Apps" folder icewm\-menu\-fdo
186 \& menufile Programs folder programs
187 \& menufile Tool_bar folder toolbar
188 .Ve
189 .SS FILES
190 .IX Subsection "FILES"
191 Locations for the \fImenu\fR file are as follows:
192 .PP
193 .Vb 5
194 \& $ICEWM_PRIVCFG/menu
195 \& $XDG_CONFIG_HOME/icewm/menu
196 \& $HOME/.icewm/menu
197 \& /etc/icewm/menu
198 \& /usr/share/icewm/menu
199 .Ve
200 .PP
201 The locations are searched in the order listed; the first file found is
202 read and the remainder ignored.
203 .SS "SEE ALSO"
204 .IX Subsection "SEE ALSO"
205 \&\fBicewm\fR\|(1),
206 \&\fBicewm\-menu\-fdo\fR\|(1).
207 .SS AUTHOR
208 .IX Subsection "AUTHOR"
209 Brian Bidulock <mailto:[email protected]>.
210 .SS LICENSE
211 .IX Subsection "LICENSE"
212 \&\fBIceWM\fR is licensed under the GNU Library General Public License.
213 See the \fICOPYING\fR file in the distribution.