Blame


1 0d0d65c9 2018-06-14 omar.polo MYMENU(1) - General Commands Manual
2 0d0d65c9 2018-06-14 omar.polo
3 0d0d65c9 2018-06-14 omar.polo # NAME
4 0d0d65c9 2018-06-14 omar.polo
5 0d0d65c9 2018-06-14 omar.polo **mymenu** - simple menu for XOrg
6 0d0d65c9 2018-06-14 omar.polo
7 ae801529 2018-07-13 omar.polo # SYNOPSIS
8 ae801529 2018-07-13 omar.polo
9 ae801529 2018-07-13 omar.polo **mymenu**
10 57d3c979 2018-10-17 omar.polo \[**-Aahmv**]
11 54fabaa4 2018-09-16 omar.polo \[**-B** *colors*]
12 57d3c979 2018-10-17 omar.polo \[**-b** *size*]
13 54fabaa4 2018-09-16 omar.polo \[**-C** *color*]
14 54fabaa4 2018-09-16 omar.polo \[**-c** *color*]
15 54fabaa4 2018-09-16 omar.polo \[**-d** *separator*]
16 54fabaa4 2018-09-16 omar.polo \[**-e** *window*]
17 54fabaa4 2018-09-16 omar.polo \[**-f** *font*]
18 57d3c979 2018-10-17 omar.polo \[**-G** *color*]
19 57d3c979 2018-10-17 omar.polo \[**-g** *size*]
20 844addbb 2018-07-15 omar.polo \[**-H** *height*]
21 57d3c979 2018-10-17 omar.polo \[**-I** *color*]
22 57d3c979 2018-10-17 omar.polo \[**-i** *size*]
23 57d3c979 2018-10-17 omar.polo \[**-J** *color*]
24 57d3c979 2018-10-17 omar.polo \[**-j** *size*]
25 ae801529 2018-07-13 omar.polo \[**-l** *layout*]
26 54fabaa4 2018-09-16 omar.polo \[**-P** *padding*]
27 54fabaa4 2018-09-16 omar.polo \[**-p** *prompt*]
28 ae801529 2018-07-13 omar.polo \[**-S** *color*]
29 54fabaa4 2018-09-16 omar.polo \[**-s** *color*]
30 57d3c979 2018-10-17 omar.polo \[**-T** *color*]
31 57d3c979 2018-10-17 omar.polo \[**-t** *color*]
32 54fabaa4 2018-09-16 omar.polo \[**-W** *width*]
33 54fabaa4 2018-09-16 omar.polo \[**-x** *coord*]
34 54fabaa4 2018-09-16 omar.polo \[**-y** *coord*]
35 ae801529 2018-07-13 omar.polo
36 0d0d65c9 2018-06-14 omar.polo # DESCRIPTION
37 0d0d65c9 2018-06-14 omar.polo
38 0d0d65c9 2018-06-14 omar.polo The
39 0d0d65c9 2018-06-14 omar.polo **mymenu**
40 0d0d65c9 2018-06-14 omar.polo utility a simple graphical menu for XOrg. It read the items from
41 0d0d65c9 2018-06-14 omar.polo **stdin**
42 0d0d65c9 2018-06-14 omar.polo and print the user selection to
43 0d0d65c9 2018-06-14 omar.polo **stdout**
44 0d0d65c9 2018-06-14 omar.polo on exit.
45 0d0d65c9 2018-06-14 omar.polo
46 ae801529 2018-07-13 omar.polo The following options are available and take the maximum precedence
47 ae801529 2018-07-13 omar.polo over the (respective) ones defined in the
48 ae801529 2018-07-13 omar.polo **X Resource Database**
49 0d0d65c9 2018-06-14 omar.polo
50 54fabaa4 2018-09-16 omar.polo **-A**
51 0d0d65c9 2018-06-14 omar.polo
52 54fabaa4 2018-09-16 omar.polo > The user must chose one of the option (or none) and is not able to
53 54fabaa4 2018-09-16 omar.polo > arbitrary enter text
54 0d0d65c9 2018-06-14 omar.polo
55 ae801529 2018-07-13 omar.polo **-a**
56 0d0d65c9 2018-06-14 omar.polo
57 ae801529 2018-07-13 omar.polo > The first completion (if any) is always selected. This is like dmenu.
58 0d0d65c9 2018-06-14 omar.polo
59 54fabaa4 2018-09-16 omar.polo **-B** *colors*
60 3518f203 2018-07-21 omar.polo
61 54fabaa4 2018-09-16 omar.polo > Override the borders color. Parsed as MyMenu.border.color.
62 3518f203 2018-07-21 omar.polo
63 54fabaa4 2018-09-16 omar.polo **-b** *borders*
64 0dee1b65 2018-08-13 omar.polo
65 54fabaa4 2018-09-16 omar.polo > Override the borders size. Parsed as MyMenu.border.size.
66 0dee1b65 2018-08-13 omar.polo
67 54fabaa4 2018-09-16 omar.polo **-C** *color*
68 ae801529 2018-07-13 omar.polo
69 54fabaa4 2018-09-16 omar.polo > Override the completion background color. See
70 54fabaa4 2018-09-16 omar.polo > MyMenu.completion.background.
71 ae801529 2018-07-13 omar.polo
72 54fabaa4 2018-09-16 omar.polo **-c** *color*
73 ae801529 2018-07-13 omar.polo
74 54fabaa4 2018-09-16 omar.polo > Override the completion foreground color. See
75 54fabaa4 2018-09-16 omar.polo > MyMenu.completion.foreground.
76 ae801529 2018-07-13 omar.polo
77 54fabaa4 2018-09-16 omar.polo **-d** *separator*
78 ae801529 2018-07-13 omar.polo
79 57d3c979 2018-10-17 omar.polo > Define a string to be used as a separator (mnemonic: delimiter). Only
80 57d3c979 2018-10-17 omar.polo > the text after the separator will be rendered, but the original string
81 57d3c979 2018-10-17 omar.polo > will be returned. Useful to embed custom data on every entry. See the
82 57d3c979 2018-10-17 omar.polo > mpd example for hints on how this can be useful.
83 ae801529 2018-07-13 omar.polo
84 54fabaa4 2018-09-16 omar.polo **-e** *windowid*
85 ae801529 2018-07-13 omar.polo
86 54fabaa4 2018-09-16 omar.polo > Embed into the given window id.
87 ae801529 2018-07-13 omar.polo
88 57d3c979 2018-10-17 omar.polo **-f** *font*
89 57d3c979 2018-10-17 omar.polo
90 57d3c979 2018-10-17 omar.polo > Override the font. See MyMenu.font.
91 57d3c979 2018-10-17 omar.polo
92 57d3c979 2018-10-17 omar.polo **-G** *color*
93 57d3c979 2018-10-17 omar.polo
94 57d3c979 2018-10-17 omar.polo > Override the border colors of the prompt. See
95 57d3c979 2018-10-17 omar.polo > MyMenu.prompt.border.color.
96 57d3c979 2018-10-17 omar.polo
97 57d3c979 2018-10-17 omar.polo **-g** *size*
98 57d3c979 2018-10-17 omar.polo
99 57d3c979 2018-10-17 omar.polo > Override the border size of the prompt. See
100 57d3c979 2018-10-17 omar.polo > MyMenu.prompt.border.size.
101 57d3c979 2018-10-17 omar.polo
102 54fabaa4 2018-09-16 omar.polo **-H** *val*
103 ae801529 2018-07-13 omar.polo
104 54fabaa4 2018-09-16 omar.polo > Override the height. Parsed as MyMenu.height.
105 ae801529 2018-07-13 omar.polo
106 54fabaa4 2018-09-16 omar.polo **-h**
107 54fabaa4 2018-09-16 omar.polo
108 54fabaa4 2018-09-16 omar.polo > Print a small usage message to stderr.
109 54fabaa4 2018-09-16 omar.polo
110 57d3c979 2018-10-17 omar.polo **-I** *color*
111 ae801529 2018-07-13 omar.polo
112 57d3c979 2018-10-17 omar.polo > Override the border colors of the completion. See
113 57d3c979 2018-10-17 omar.polo > MyMenu.completion.border.color.
114 ae801529 2018-07-13 omar.polo
115 57d3c979 2018-10-17 omar.polo **-i** *size*
116 57d3c979 2018-10-17 omar.polo
117 57d3c979 2018-10-17 omar.polo > Override the border size of the completion. See
118 57d3c979 2018-10-17 omar.polo > MyMenu.completion.border.size.
119 57d3c979 2018-10-17 omar.polo
120 57d3c979 2018-10-17 omar.polo **-J** *color*
121 57d3c979 2018-10-17 omar.polo
122 57d3c979 2018-10-17 omar.polo > Override the border colors of the completion. See
123 57d3c979 2018-10-17 omar.polo > MyMenu.completion\_highlighted.border.color.
124 57d3c979 2018-10-17 omar.polo
125 57d3c979 2018-10-17 omar.polo **-j** *size*
126 57d3c979 2018-10-17 omar.polo
127 57d3c979 2018-10-17 omar.polo > Override the border size of the completion. See
128 57d3c979 2018-10-17 omar.polo > MyMenu.completion\_highlighted.border.size.
129 57d3c979 2018-10-17 omar.polo
130 54fabaa4 2018-09-16 omar.polo **-l** *layout*
131 ae801529 2018-07-13 omar.polo
132 54fabaa4 2018-09-16 omar.polo > Override the layout. Parsed as MyMenu.layout.
133 ae801529 2018-07-13 omar.polo
134 54fabaa4 2018-09-16 omar.polo **-m**
135 ae801529 2018-07-13 omar.polo
136 54fabaa4 2018-09-16 omar.polo > The user can select multiple entry via C-m. Please consult
137 845963e5 2018-09-16 omar.polo > *KEYS*
138 845963e5 2018-09-16 omar.polo > for more info.
139 ae801529 2018-07-13 omar.polo
140 54fabaa4 2018-09-16 omar.polo **-P** *padding*
141 ae801529 2018-07-13 omar.polo
142 7f9e4fec 2018-10-17 omar.polo > Override the padding. See the MyMenu.prompt.padding resource.
143 ae801529 2018-07-13 omar.polo
144 54fabaa4 2018-09-16 omar.polo **-p** *prompt*
145 ae801529 2018-07-13 omar.polo
146 54fabaa4 2018-09-16 omar.polo > Override the prompt
147 ae801529 2018-07-13 omar.polo
148 54fabaa4 2018-09-16 omar.polo **-S** *color*
149 ae801529 2018-07-13 omar.polo
150 54fabaa4 2018-09-16 omar.polo > Override the highlighted completion background color. See
151 54fabaa4 2018-09-16 omar.polo > MyMenu.completion\_highlighted.background.
152 ae801529 2018-07-13 omar.polo
153 54fabaa4 2018-09-16 omar.polo **-s** *color*
154 54fabaa4 2018-09-16 omar.polo
155 54fabaa4 2018-09-16 omar.polo > Override the highlighted completion foreground color. See
156 54fabaa4 2018-09-16 omar.polo > MyMenu.completion\_highlighted.foreground.
157 54fabaa4 2018-09-16 omar.polo
158 ae801529 2018-07-13 omar.polo **-T** *color*
159 ae801529 2018-07-13 omar.polo
160 ae801529 2018-07-13 omar.polo > Override the prompt background color. See MyMenu.prompt.background.
161 ae801529 2018-07-13 omar.polo
162 54fabaa4 2018-09-16 omar.polo **-t** *color*
163 ae801529 2018-07-13 omar.polo
164 54fabaa4 2018-09-16 omar.polo > Override the prompt foreground color. See MyMenu.prompt.foreground.
165 ae801529 2018-07-13 omar.polo
166 54fabaa4 2018-09-16 omar.polo **-v**
167 ae801529 2018-07-13 omar.polo
168 54fabaa4 2018-09-16 omar.polo > Print version and exit.
169 ae801529 2018-07-13 omar.polo
170 54fabaa4 2018-09-16 omar.polo **-W** *val*
171 ae801529 2018-07-13 omar.polo
172 54fabaa4 2018-09-16 omar.polo > Override the width. Parsed as MyMenu.width.
173 ae801529 2018-07-13 omar.polo
174 54fabaa4 2018-09-16 omar.polo **-x** *val*
175 ae801529 2018-07-13 omar.polo
176 54fabaa4 2018-09-16 omar.polo > Override the positioning on the X axis, parsed as the resource MyMenu.x
177 ae801529 2018-07-13 omar.polo
178 54fabaa4 2018-09-16 omar.polo **-y** *val*
179 844addbb 2018-07-15 omar.polo
180 54fabaa4 2018-09-16 omar.polo > Override the positioning on the Y axis, parsed as the resource MyMenu.y
181 844addbb 2018-07-15 omar.polo
182 ae801529 2018-07-13 omar.polo # RESOURCES
183 ae801529 2018-07-13 omar.polo
184 0d0d65c9 2018-06-14 omar.polo MyMenu.font
185 0d0d65c9 2018-06-14 omar.polo
186 0d0d65c9 2018-06-14 omar.polo > The font name to use. By default is set to "fixed" if compiled without
187 0d0d65c9 2018-06-14 omar.polo > Xft(3) support, "monospace" otherwise. Without Xft(3) only bitmap font
188 0d0d65c9 2018-06-14 omar.polo > are supported.
189 0d0d65c9 2018-06-14 omar.polo
190 0d0d65c9 2018-06-14 omar.polo MyMenu.layout
191 0d0d65c9 2018-06-14 omar.polo
192 0d0d65c9 2018-06-14 omar.polo > The layout of the menu. The possible values are "horizontal" and
193 0d0d65c9 2018-06-14 omar.polo > "vertical", with the default being "horizontal". Every other value
194 0d0d65c9 2018-06-14 omar.polo > than "horizontal" is treated like "vertical", but this is kinda an
195 0d0d65c9 2018-06-14 omar.polo > implementation detail and not something to be relied on, since in the
196 0d0d65c9 2018-06-14 omar.polo > future other layout could be added as well.
197 0d0d65c9 2018-06-14 omar.polo
198 57d3c979 2018-10-17 omar.polo MyMenu.prompt
199 0d0d65c9 2018-06-14 omar.polo
200 0d0d65c9 2018-06-14 omar.polo > A string that is rendered before the user input. Default to "$ ".
201 0d0d65c9 2018-06-14 omar.polo
202 57d3c979 2018-10-17 omar.polo MyMenu.prompt.border.size
203 57d3c979 2018-10-17 omar.polo
204 57d3c979 2018-10-17 omar.polo > Parsed like MyMenu.border.size, but affects only the prompt. Default
205 57d3c979 2018-10-17 omar.polo > to 0.
206 57d3c979 2018-10-17 omar.polo
207 57d3c979 2018-10-17 omar.polo MyMenu.prompt.border.color
208 57d3c979 2018-10-17 omar.polo
209 57d3c979 2018-10-17 omar.polo > Parsed like MyMenu.border.color, but affects only the prompt. Default
210 57d3c979 2018-10-17 omar.polo > to #000 (black).
211 57d3c979 2018-10-17 omar.polo
212 57d3c979 2018-10-17 omar.polo MyMenu.prompt.padding
213 57d3c979 2018-10-17 omar.polo
214 57d3c979 2018-10-17 omar.polo > Parsed like MyMenu.border.size. The padding is the space between the
215 57d3c979 2018-10-17 omar.polo > end of the borderd and the start of the text, in any direction (top,
216 57d3c979 2018-10-17 omar.polo > bottom, left, right). Default to 10.
217 57d3c979 2018-10-17 omar.polo
218 0d0d65c9 2018-06-14 omar.polo MyMenu.width
219 0d0d65c9 2018-06-14 omar.polo
220 0d0d65c9 2018-06-14 omar.polo > The width of the menu. If a numeric value is given (e.g. 400) is
221 0d0d65c9 2018-06-14 omar.polo > interpreted as pixel, if it ends with a percentage symbol \`%'
222 0d0d65c9 2018-06-14 omar.polo > (e.g. 40%) the relative percentage will be computed (relative to the
223 0d0d65c9 2018-06-14 omar.polo > monitor width).
224 0d0d65c9 2018-06-14 omar.polo
225 0d0d65c9 2018-06-14 omar.polo MyMenu.height
226 0d0d65c9 2018-06-14 omar.polo
227 0d0d65c9 2018-06-14 omar.polo > The height of the menu. Like MyMenu.width if a numeric value is given
228 0d0d65c9 2018-06-14 omar.polo > is interpreted as pixel, if it ends with a percentage symbol \`%' the
229 0d0d65c9 2018-06-14 omar.polo > relative percentage will be computed (relative to the monitor height).
230 0d0d65c9 2018-06-14 omar.polo
231 0d0d65c9 2018-06-14 omar.polo MyMenu.x
232 0d0d65c9 2018-06-14 omar.polo
233 0d0d65c9 2018-06-14 omar.polo > The X coordinate of the topmost left corner of the window. Much like
234 0d0d65c9 2018-06-14 omar.polo > MyMenu.height and MyMenu.width both a pixel dimension and percentage
235 ae801529 2018-07-13 omar.polo > could be supplied. In addition to it, some special value can be used.
236 0d0d65c9 2018-06-14 omar.polo
237 ae801529 2018-07-13 omar.polo > start
238 ae801529 2018-07-13 omar.polo
239 ae801529 2018-07-13 omar.polo > > Alias for 0;
240 ae801529 2018-07-13 omar.polo
241 ae801529 2018-07-13 omar.polo > middle
242 ae801529 2018-07-13 omar.polo
243 ae801529 2018-07-13 omar.polo > > Compute the correct value to make sure that mymenu will be
244 ae801529 2018-07-13 omar.polo > > horizontally centered;
245 ae801529 2018-07-13 omar.polo
246 ae801529 2018-07-13 omar.polo > end
247 ae801529 2018-07-13 omar.polo
248 ae801529 2018-07-13 omar.polo > > Compute the correct value to make sure that mymenu will be right
249 ae801529 2018-07-13 omar.polo > > aligned.
250 ae801529 2018-07-13 omar.polo
251 0d0d65c9 2018-06-14 omar.polo MyMenu.y
252 0d0d65c9 2018-06-14 omar.polo
253 0d0d65c9 2018-06-14 omar.polo > The Y coordinate of the topmost left corner of the window. Like the X
254 0d0d65c9 2018-06-14 omar.polo > coordinate a pixel dimension, percentage dimension or the special
255 ae801529 2018-07-13 omar.polo > value "start", "middle", "end" could be supplied.
256 0d0d65c9 2018-06-14 omar.polo
257 500ca6c1 2018-07-08 omar.polo MyMenu.border.size
258 500ca6c1 2018-07-08 omar.polo
259 500ca6c1 2018-07-08 omar.polo > A list of number separated by spaces to specify the border of the
260 500ca6c1 2018-07-08 omar.polo > window. The field is parsed like some CSS properties (i.e. padding),
261 500ca6c1 2018-07-08 omar.polo > that is: if only one value is provided then it'll be used for all
262 500ca6c1 2018-07-08 omar.polo > borders; if two value are given than the first will be used for the
263 500ca6c1 2018-07-08 omar.polo > top and bottom border and the former for the left and right border;
264 500ca6c1 2018-07-08 omar.polo > with three value the first is used for the top border, the second for
265 500ca6c1 2018-07-08 omar.polo > the left and right border and the third for the bottom border. If four
266 500ca6c1 2018-07-08 omar.polo > value are given, they'll be applied to the respective border
267 500ca6c1 2018-07-08 omar.polo > clockwise. Other values will be ignored. The default value is 0.
268 500ca6c1 2018-07-08 omar.polo
269 57d3c979 2018-10-17 omar.polo > This particular option accepts a percentage (e.g. 10%) relative to the
270 4b09b4b1 2018-10-17 omar.polo > screen width.
271 57d3c979 2018-10-17 omar.polo
272 500ca6c1 2018-07-08 omar.polo MyMenu.border.color
273 500ca6c1 2018-07-08 omar.polo
274 500ca6c1 2018-07-08 omar.polo > A list of colors for the borders. This field is parsed like the
275 500ca6c1 2018-07-08 omar.polo > MyMenu.border.size. The default value is black.
276 500ca6c1 2018-07-08 omar.polo
277 0d0d65c9 2018-06-14 omar.polo MyMenu.prompt.background
278 0d0d65c9 2018-06-14 omar.polo
279 0d0d65c9 2018-06-14 omar.polo > The background of the prompt.
280 0d0d65c9 2018-06-14 omar.polo
281 0d0d65c9 2018-06-14 omar.polo MyMenu.prompt.foreground
282 0d0d65c9 2018-06-14 omar.polo
283 0d0d65c9 2018-06-14 omar.polo > The text color (foreground) of the prompt.
284 0d0d65c9 2018-06-14 omar.polo
285 0d0d65c9 2018-06-14 omar.polo MyMenu.completion.background
286 0d0d65c9 2018-06-14 omar.polo
287 0d0d65c9 2018-06-14 omar.polo > The background of the completions.
288 0d0d65c9 2018-06-14 omar.polo
289 0d0d65c9 2018-06-14 omar.polo MyMenu.completion.foreground
290 0d0d65c9 2018-06-14 omar.polo
291 0d0d65c9 2018-06-14 omar.polo > The text color of the completions.
292 0d0d65c9 2018-06-14 omar.polo
293 57d3c979 2018-10-17 omar.polo MyMenu.completion.border.size
294 57d3c979 2018-10-17 omar.polo
295 57d3c979 2018-10-17 omar.polo > Parsed like MyMenu.border.size, but affects only the
296 57d3c979 2018-10-17 omar.polo > completion. Default to 0.
297 57d3c979 2018-10-17 omar.polo
298 57d3c979 2018-10-17 omar.polo MyMenu.completion.border.color
299 57d3c979 2018-10-17 omar.polo
300 57d3c979 2018-10-17 omar.polo > Parsed like MyMenu.border.color, but affects only the
301 57d3c979 2018-10-17 omar.polo > completion. Default to #000 (black).
302 57d3c979 2018-10-17 omar.polo
303 57d3c979 2018-10-17 omar.polo MyMenu.completion.padding
304 57d3c979 2018-10-17 omar.polo
305 57d3c979 2018-10-17 omar.polo > Parsed like MyMenu.prompt.padding. Default to 10.
306 57d3c979 2018-10-17 omar.polo
307 0d0d65c9 2018-06-14 omar.polo MyMenu.completion\_highlighted.background
308 0d0d65c9 2018-06-14 omar.polo
309 0d0d65c9 2018-06-14 omar.polo > The background of the selected completion.
310 0d0d65c9 2018-06-14 omar.polo
311 0d0d65c9 2018-06-14 omar.polo MyMenu.completion\_highlighted.foreground
312 0d0d65c9 2018-06-14 omar.polo
313 0d0d65c9 2018-06-14 omar.polo > The foreground of the selected completion.
314 0d0d65c9 2018-06-14 omar.polo
315 57d3c979 2018-10-17 omar.polo MyMenu.completion\_highlighted.border.size
316 57d3c979 2018-10-17 omar.polo
317 57d3c979 2018-10-17 omar.polo > Parsed like MyMenu.border.size, but affects only the completion
318 57d3c979 2018-10-17 omar.polo > highlighted. Default to 0.
319 57d3c979 2018-10-17 omar.polo
320 57d3c979 2018-10-17 omar.polo MyMenu.completion\_highlighted.border.color
321 57d3c979 2018-10-17 omar.polo
322 57d3c979 2018-10-17 omar.polo > Parsed like MyMenu.border.color, but affects only the completion
323 57d3c979 2018-10-17 omar.polo > highlighted. Default to #000 (black).
324 57d3c979 2018-10-17 omar.polo
325 57d3c979 2018-10-17 omar.polo MyMenu.completion\_highlighted.padding
326 57d3c979 2018-10-17 omar.polo
327 57d3c979 2018-10-17 omar.polo > Parsed like MyMenu.prompt.padding. Default to 10.
328 57d3c979 2018-10-17 omar.polo
329 54fabaa4 2018-09-16 omar.polo # COLORS
330 54fabaa4 2018-09-16 omar.polo
331 54fabaa4 2018-09-16 omar.polo MyMenu accept colors only in the form of:
332 54fabaa4 2018-09-16 omar.polo
333 54fabaa4 2018-09-16 omar.polo * #rgb
334 54fabaa4 2018-09-16 omar.polo
335 54fabaa4 2018-09-16 omar.polo * #rrggbb
336 54fabaa4 2018-09-16 omar.polo
337 54fabaa4 2018-09-16 omar.polo * #aarrggbb
338 54fabaa4 2018-09-16 omar.polo
339 54fabaa4 2018-09-16 omar.polo The opacity is assumed 0xff (no transparency) if not provided.
340 54fabaa4 2018-09-16 omar.polo
341 0d0d65c9 2018-06-14 omar.polo # KEYS
342 0d0d65c9 2018-06-14 omar.polo
343 bee0837c 2018-07-01 omar.polo This is the list of keybinding recognized by
344 bee0837c 2018-07-01 omar.polo **mymenu**.
345 bee0837c 2018-07-01 omar.polo In the following examples, C-c means Control-c.
346 bee0837c 2018-07-01 omar.polo
347 0d0d65c9 2018-06-14 omar.polo Esc
348 0d0d65c9 2018-06-14 omar.polo
349 0d0d65c9 2018-06-14 omar.polo > Close the menu without selecting any entry
350 0d0d65c9 2018-06-14 omar.polo
351 bee0837c 2018-07-01 omar.polo C-c
352 bee0837c 2018-07-01 omar.polo
353 bee0837c 2018-07-01 omar.polo > The same as Esc
354 bee0837c 2018-07-01 omar.polo
355 0d0d65c9 2018-06-14 omar.polo Enter
356 0d0d65c9 2018-06-14 omar.polo
357 0d0d65c9 2018-06-14 omar.polo > Close the menu and print to stdout what the user typed
358 0d0d65c9 2018-06-14 omar.polo
359 0d0d65c9 2018-06-14 omar.polo C-m
360 0d0d65c9 2018-06-14 omar.polo
361 0dee1b65 2018-08-13 omar.polo > Confirm but keep looping (if enabled), otherwise complete only
362 0d0d65c9 2018-06-14 omar.polo
363 0d0d65c9 2018-06-14 omar.polo Tab
364 0d0d65c9 2018-06-14 omar.polo
365 0d0d65c9 2018-06-14 omar.polo > Expand the prompt to the next possible completion
366 0d0d65c9 2018-06-14 omar.polo
367 0d0d65c9 2018-06-14 omar.polo Shift Tab
368 0d0d65c9 2018-06-14 omar.polo
369 0d0d65c9 2018-06-14 omar.polo > Expand the prompt to the previous possible completion
370 0d0d65c9 2018-06-14 omar.polo
371 0d0d65c9 2018-06-14 omar.polo C-n
372 0d0d65c9 2018-06-14 omar.polo
373 0d0d65c9 2018-06-14 omar.polo > The same as Tab
374 0d0d65c9 2018-06-14 omar.polo
375 0d0d65c9 2018-06-14 omar.polo C-p
376 0d0d65c9 2018-06-14 omar.polo
377 0d0d65c9 2018-06-14 omar.polo > The same as Shift-Tab
378 0d0d65c9 2018-06-14 omar.polo
379 0d0d65c9 2018-06-14 omar.polo Backspace
380 0d0d65c9 2018-06-14 omar.polo
381 0d0d65c9 2018-06-14 omar.polo > Delete the last character
382 0d0d65c9 2018-06-14 omar.polo
383 0d0d65c9 2018-06-14 omar.polo C-h
384 0d0d65c9 2018-06-14 omar.polo
385 0d0d65c9 2018-06-14 omar.polo > The same as Backspace
386 0d0d65c9 2018-06-14 omar.polo
387 0d0d65c9 2018-06-14 omar.polo C-w
388 0d0d65c9 2018-06-14 omar.polo
389 0d0d65c9 2018-06-14 omar.polo > Delete the last word
390 0d0d65c9 2018-06-14 omar.polo
391 0d0d65c9 2018-06-14 omar.polo C-u
392 0d0d65c9 2018-06-14 omar.polo
393 0d0d65c9 2018-06-14 omar.polo > Delete the whole line
394 0d0d65c9 2018-06-14 omar.polo
395 6254fed8 2018-07-06 omar.polo C-i
396 6254fed8 2018-07-06 omar.polo
397 6254fed8 2018-07-06 omar.polo > Toggle the \`\`first selected'' style. Sometimes, especially with the -a
398 6254fed8 2018-07-06 omar.polo > option, could be handy to disable that behaviour. Let's say that
399 6254fed8 2018-07-06 omar.polo > you've typed \`\`fire'' and the first completion is \`\`firefox'' but you
400 6254fed8 2018-07-06 omar.polo > really want to choose \`\`fire''. While you can type some spaces, this
401 6254fed8 2018-07-06 omar.polo > keybinding is a more elegant way to change, at runtime, the behaviour
402 6254fed8 2018-07-06 omar.polo > of the first completion.
403 6254fed8 2018-07-06 omar.polo
404 3518f203 2018-07-21 omar.polo # EXIT STATUS
405 3518f203 2018-07-21 omar.polo
406 3518f203 2018-07-21 omar.polo 0 when the user select an entry, 1 when the user press Esc, EX\_USAGE
407 3518f203 2018-07-21 omar.polo if used with wrong flags and EX\_UNAVAILABLE if the connection to X
408 3518f203 2018-07-21 omar.polo fails.
409 3518f203 2018-07-21 omar.polo
410 3518f203 2018-07-21 omar.polo # EXAMPLES
411 3518f203 2018-07-21 omar.polo
412 3518f203 2018-07-21 omar.polo * Create a simple menu with a couple of entry
413 3518f203 2018-07-21 omar.polo
414 3518f203 2018-07-21 omar.polo cat <<EOF | $SHELL -c "$(mymenu -p "Exec: ")"
415 3518f203 2018-07-21 omar.polo firefox
416 3518f203 2018-07-21 omar.polo zzz
417 3518f203 2018-07-21 omar.polo xcalc -stipple
418 3518f203 2018-07-21 omar.polo xlock
419 3518f203 2018-07-21 omar.polo gimp
420 3518f203 2018-07-21 omar.polo EOF
421 3518f203 2018-07-21 omar.polo
422 3518f203 2018-07-21 omar.polo * Select and play a song from the current mpd playlist
423 3518f203 2018-07-21 omar.polo
424 630eb368 2018-09-19 omar.polo fmt="%position% %artist% - %title%"
425 630eb368 2018-09-19 omar.polo if song=$(mpc playlist -f "$fmt" | mymenu -p "Song: " -A -d " "); then
426 630eb368 2018-09-19 omar.polo mpc play $(echo $song | sed "s/ .*$//")
427 3518f203 2018-07-21 omar.polo fi
428 3518f203 2018-07-21 omar.polo
429 3518f203 2018-07-21 omar.polo # SEE ALSO
430 3518f203 2018-07-21 omar.polo
431 3518f203 2018-07-21 omar.polo dmenu(1)
432 3518f203 2018-07-21 omar.polo sysexits(3)
433 3518f203 2018-07-21 omar.polo
434 3518f203 2018-07-21 omar.polo # AUTHORS
435 3518f203 2018-07-21 omar.polo
436 3518f203 2018-07-21 omar.polo Omar Polo &lt;omar.polo@europecom.net&gt;
437 3518f203 2018-07-21 omar.polo
438 0dee1b65 2018-08-13 omar.polo # CAVEATS
439 0d0d65c9 2018-06-14 omar.polo
440 0d0d65c9 2018-06-14 omar.polo * If, instead of a numeric value, a not-valid number that terminates
441 0d0d65c9 2018-06-14 omar.polo with the % sign is supplied, then the default value for that field
442 0d0d65c9 2018-06-14 omar.polo will be treated as a percentage. Since this is a misuse of the
443 0d0d65c9 2018-06-14 omar.polo resources this behavior isn't strictly considered a bug.
444 0d0d65c9 2018-06-14 omar.polo
445 ae801529 2018-07-13 omar.polo * Keep in mind that sometimes the order of the options matter. First are
446 ae801529 2018-07-13 omar.polo parsed (if any) the xrdb options, then the command line flags
447 ae801529 2018-07-13 omar.polo **in the provided order!**
448 ae801529 2018-07-13 omar.polo That meas that if you're providing first the x coordinate, let's say
449 ae801529 2018-07-13 omar.polo "middle", and
450 ae801529 2018-07-13 omar.polo **after that**
451 ae801529 2018-07-13 omar.polo you are overriding the width, the window
452 ae801529 2018-07-13 omar.polo **will not be**
453 ae801529 2018-07-13 omar.polo centered.
454 ae801529 2018-07-13 omar.polo
455 ae801529 2018-07-13 omar.polo As a general rule of thumb, if you're overriding the width and/or the
456 ae801529 2018-07-13 omar.polo height of the window, remember to override the x and y coordinates as
457 ae801529 2018-07-13 omar.polo well.
458 ae801529 2018-07-13 omar.polo
459 57d3c979 2018-10-17 omar.polo OpenBSD 6.4 - October 17, 2018