Blame
Date:
Sun Oct 20 08:34:27 2019 UTC
Message:
Clicking on the prompt closes mymenu

added this behaviour and documentation
001
2018-06-14
omar.pol
MYMENU(1) - General Commands Manual
002
2018-06-14
omar.pol
003
2018-06-14
omar.pol
# NAME
004
2018-06-14
omar.pol
005
2018-06-14
omar.pol
**mymenu** - simple menu for XOrg
006
2018-06-14
omar.pol
007
2018-07-13
omar.pol
# SYNOPSIS
008
2018-07-13
omar.pol
009
2018-07-13
omar.pol
**mymenu**
010
2018-10-17
omar.pol
\[**-Aahmv**]
011
2018-09-16
omar.pol
\[**-B** *colors*]
012
2018-10-17
omar.pol
\[**-b** *size*]
013
2018-09-16
omar.pol
\[**-C** *color*]
014
2018-09-16
omar.pol
\[**-c** *color*]
015
2018-09-16
omar.pol
\[**-d** *separator*]
016
2018-09-16
omar.pol
\[**-e** *window*]
017
2018-09-16
omar.pol
\[**-f** *font*]
018
2018-10-17
omar.pol
\[**-G** *color*]
019
2018-10-17
omar.pol
\[**-g** *size*]
020
2018-07-15
omar.pol
\[**-H** *height*]
021
2018-10-17
omar.pol
\[**-I** *color*]
022
2018-10-17
omar.pol
\[**-i** *size*]
023
2018-10-17
omar.pol
\[**-J** *color*]
024
2018-10-17
omar.pol
\[**-j** *size*]
025
2018-07-13
omar.pol
\[**-l** *layout*]
026
2018-09-16
omar.pol
\[**-P** *padding*]
027
2018-09-16
omar.pol
\[**-p** *prompt*]
028
2018-07-13
omar.pol
\[**-S** *color*]
029
2018-09-16
omar.pol
\[**-s** *color*]
030
2018-10-17
omar.pol
\[**-T** *color*]
031
2018-10-17
omar.pol
\[**-t** *color*]
032
2018-09-16
omar.pol
\[**-W** *width*]
033
2018-09-16
omar.pol
\[**-x** *coord*]
034
2018-09-16
omar.pol
\[**-y** *coord*]
035
2018-07-13
omar.pol
036
2018-06-14
omar.pol
# DESCRIPTION
037
2018-06-14
omar.pol
038
2018-06-14
omar.pol
The
039
2018-06-14
omar.pol
**mymenu**
040
2018-06-14
omar.pol
utility a simple graphical menu for XOrg. It read the items from
041
2018-06-14
omar.pol
**stdin**
042
2018-06-14
omar.pol
and print the user selection to
043
2018-06-14
omar.pol
**stdout**
044
2018-06-14
omar.pol
on exit.
045
2018-06-14
omar.pol
046
2018-07-13
omar.pol
The following options are available and take the maximum precedence
047
2018-07-13
omar.pol
over the (respective) ones defined in the
048
2018-07-13
omar.pol
**X Resource Database**
049
2018-06-14
omar.pol
050
2018-09-16
omar.pol
**-A**
051
2018-06-14
omar.pol
052
2018-09-16
omar.pol
> The user must chose one of the option (or none) and is not able to
053
2018-09-16
omar.pol
> arbitrary enter text
054
2018-06-14
omar.pol
055
2018-07-13
omar.pol
**-a**
056
2018-06-14
omar.pol
057
2018-07-13
omar.pol
> The first completion (if any) is always selected. This is like dmenu.
058
2018-06-14
omar.pol
059
2018-09-16
omar.pol
**-B** *colors*
060
2018-07-21
omar.pol
061
2018-09-16
omar.pol
> Override the borders color. Parsed as MyMenu.border.color.
062
2018-07-21
omar.pol
063
2018-09-16
omar.pol
**-b** *borders*
064
2018-08-13
omar.pol
065
2018-09-16
omar.pol
> Override the borders size. Parsed as MyMenu.border.size.
066
2018-08-13
omar.pol
067
2018-09-16
omar.pol
**-C** *color*
068
2018-07-13
omar.pol
069
2018-09-16
omar.pol
> Override the completion background color. See
070
2018-09-16
omar.pol
> MyMenu.completion.background.
071
2018-07-13
omar.pol
072
2018-09-16
omar.pol
**-c** *color*
073
2018-07-13
omar.pol
074
2018-09-16
omar.pol
> Override the completion foreground color. See
075
2018-09-16
omar.pol
> MyMenu.completion.foreground.
076
2018-07-13
omar.pol
077
2018-09-16
omar.pol
**-d** *separator*
078
2018-07-13
omar.pol
079
2018-10-17
omar.pol
> Define a string to be used as a separator (mnemonic: delimiter). Only
080
2018-10-17
omar.pol
> the text after the separator will be rendered, but the original string
081
2018-10-17
omar.pol
> will be returned. Useful to embed custom data on every entry. See the
082
2018-10-17
omar.pol
> mpd example for hints on how this can be useful.
083
2018-07-13
omar.pol
084
2018-09-16
omar.pol
**-e** *windowid*
085
2018-07-13
omar.pol
086
2018-09-16
omar.pol
> Embed into the given window id.
087
2018-07-13
omar.pol
088
2018-10-17
omar.pol
**-f** *font*
089
2018-10-17
omar.pol
090
2018-10-17
omar.pol
> Override the font. See MyMenu.font.
091
2018-10-17
omar.pol
092
2018-10-17
omar.pol
**-G** *color*
093
2018-10-17
omar.pol
094
2018-10-17
omar.pol
> Override the border colors of the prompt. See
095
2018-10-17
omar.pol
> MyMenu.prompt.border.color.
096
2018-10-17
omar.pol
097
2018-10-17
omar.pol
**-g** *size*
098
2018-10-17
omar.pol
099
2018-10-17
omar.pol
> Override the border size of the prompt. See
100
2018-10-17
omar.pol
> MyMenu.prompt.border.size.
101
2018-10-17
omar.pol
102
2018-09-16
omar.pol
**-H** *val*
103
2018-07-13
omar.pol
104
2018-09-16
omar.pol
> Override the height. Parsed as MyMenu.height.
105
2018-07-13
omar.pol
106
2018-09-16
omar.pol
**-h**
107
2018-09-16
omar.pol
108
2018-09-16
omar.pol
> Print a small usage message to stderr.
109
2018-09-16
omar.pol
110
2018-10-17
omar.pol
**-I** *color*
111
2018-07-13
omar.pol
112
2018-10-17
omar.pol
> Override the border colors of the completion. See
113
2018-10-17
omar.pol
> MyMenu.completion.border.color.
114
2018-07-13
omar.pol
115
2018-10-17
omar.pol
**-i** *size*
116
2018-10-17
omar.pol
117
2018-10-17
omar.pol
> Override the border size of the completion. See
118
2018-10-17
omar.pol
> MyMenu.completion.border.size.
119
2018-10-17
omar.pol
120
2018-10-17
omar.pol
**-J** *color*
121
2018-10-17
omar.pol
122
2018-10-17
omar.pol
> Override the border colors of the completion. See
123
2018-10-17
omar.pol
> MyMenu.completion\_highlighted.border.color.
124
2018-10-17
omar.pol
125
2018-10-17
omar.pol
**-j** *size*
126
2018-10-17
omar.pol
127
2018-10-17
omar.pol
> Override the border size of the completion. See
128
2018-10-17
omar.pol
> MyMenu.completion\_highlighted.border.size.
129
2018-10-17
omar.pol
130
2018-09-16
omar.pol
**-l** *layout*
131
2018-07-13
omar.pol
132
2018-09-16
omar.pol
> Override the layout. Parsed as MyMenu.layout.
133
2018-07-13
omar.pol
134
2018-09-16
omar.pol
**-m**
135
2018-07-13
omar.pol
136
2018-09-16
omar.pol
> The user can select multiple entry via C-m. Please consult
137
2018-09-16
omar.pol
> *KEYS*
138
2018-09-16
omar.pol
> for more info.
139
2018-07-13
omar.pol
140
2018-09-16
omar.pol
**-P** *padding*
141
2018-07-13
omar.pol
142
2018-10-17
omar.pol
> Override the padding. See the MyMenu.prompt.padding resource.
143
2018-07-13
omar.pol
144
2018-09-16
omar.pol
**-p** *prompt*
145
2018-07-13
omar.pol
146
2018-09-16
omar.pol
> Override the prompt
147
2018-07-13
omar.pol
148
2018-09-16
omar.pol
**-S** *color*
149
2018-07-13
omar.pol
150
2018-09-16
omar.pol
> Override the highlighted completion background color. See
151
2018-09-16
omar.pol
> MyMenu.completion\_highlighted.background.
152
2018-07-13
omar.pol
153
2018-09-16
omar.pol
**-s** *color*
154
2018-09-16
omar.pol
155
2018-09-16
omar.pol
> Override the highlighted completion foreground color. See
156
2018-09-16
omar.pol
> MyMenu.completion\_highlighted.foreground.
157
2018-09-16
omar.pol
158
2018-07-13
omar.pol
**-T** *color*
159
2018-07-13
omar.pol
160
2018-07-13
omar.pol
> Override the prompt background color. See MyMenu.prompt.background.
161
2018-07-13
omar.pol
162
2018-09-16
omar.pol
**-t** *color*
163
2018-07-13
omar.pol
164
2018-09-16
omar.pol
> Override the prompt foreground color. See MyMenu.prompt.foreground.
165
2018-07-13
omar.pol
166
2018-09-16
omar.pol
**-v**
167
2018-07-13
omar.pol
168
2018-09-16
omar.pol
> Print version and exit.
169
2018-07-13
omar.pol
170
2018-09-16
omar.pol
**-W** *val*
171
2018-07-13
omar.pol
172
2018-09-16
omar.pol
> Override the width. Parsed as MyMenu.width.
173
2018-07-13
omar.pol
174
2018-09-16
omar.pol
**-x** *val*
175
2018-07-13
omar.pol
176
2018-09-16
omar.pol
> Override the positioning on the X axis, parsed as the resource MyMenu.x
177
2018-07-13
omar.pol
178
2018-09-16
omar.pol
**-y** *val*
179
2018-07-15
omar.pol
180
2018-09-16
omar.pol
> Override the positioning on the Y axis, parsed as the resource MyMenu.y
181
2018-07-15
omar.pol
182
2018-07-13
omar.pol
# RESOURCES
183
2018-07-13
omar.pol
184
2018-06-14
omar.pol
MyMenu.font
185
2018-06-14
omar.pol
186
2018-06-14
omar.pol
> The font name to use. By default is set to "fixed" if compiled without
187
2018-06-14
omar.pol
> Xft(3) support, "monospace" otherwise. Without Xft(3) only bitmap font
188
2018-06-14
omar.pol
> are supported.
189
2018-06-14
omar.pol
190
2018-06-14
omar.pol
MyMenu.layout
191
2018-06-14
omar.pol
192
2018-06-14
omar.pol
> The layout of the menu. The possible values are "horizontal" and
193
2018-06-14
omar.pol
> "vertical", with the default being "horizontal". Every other value
194
2018-06-14
omar.pol
> than "horizontal" is treated like "vertical", but this is kinda an
195
2018-06-14
omar.pol
> implementation detail and not something to be relied on, since in the
196
2018-06-14
omar.pol
> future other layout could be added as well.
197
2018-06-14
omar.pol
198
2018-10-17
omar.pol
MyMenu.prompt
199
2018-06-14
omar.pol
200
2018-06-14
omar.pol
> A string that is rendered before the user input. Default to "$ ".
201
2018-06-14
omar.pol
202
2018-10-17
omar.pol
MyMenu.prompt.border.size
203
2018-10-17
omar.pol
204
2018-10-17
omar.pol
> Parsed like MyMenu.border.size, but affects only the prompt. Default
205
2018-10-17
omar.pol
> to 0.
206
2018-10-17
omar.pol
207
2018-10-17
omar.pol
MyMenu.prompt.border.color
208
2018-10-17
omar.pol
209
2018-10-17
omar.pol
> Parsed like MyMenu.border.color, but affects only the prompt. Default
210
2018-10-17
omar.pol
> to #000 (black).
211
2018-10-17
omar.pol
212
2018-10-17
omar.pol
MyMenu.prompt.padding
213
2018-10-17
omar.pol
214
2018-10-17
omar.pol
> Parsed like MyMenu.border.size. The padding is the space between the
215
2018-10-17
omar.pol
> end of the borderd and the start of the text, in any direction (top,
216
2018-10-17
omar.pol
> bottom, left, right). Default to 10.
217
2018-10-17
omar.pol
218
2018-06-14
omar.pol
MyMenu.width
219
2018-06-14
omar.pol
220
2018-06-14
omar.pol
> The width of the menu. If a numeric value is given (e.g. 400) is
221
2018-06-14
omar.pol
> interpreted as pixel, if it ends with a percentage symbol \`%'
222
2018-06-14
omar.pol
> (e.g. 40%) the relative percentage will be computed (relative to the
223
2018-06-14
omar.pol
> monitor width).
224
2018-06-14
omar.pol
225
2018-06-14
omar.pol
MyMenu.height
226
2018-06-14
omar.pol
227
2018-06-14
omar.pol
> The height of the menu. Like MyMenu.width if a numeric value is given
228
2018-06-14
omar.pol
> is interpreted as pixel, if it ends with a percentage symbol \`%' the
229
2018-06-14
omar.pol
> relative percentage will be computed (relative to the monitor height).
230
2018-06-14
omar.pol
231
2018-06-14
omar.pol
MyMenu.x
232
2018-06-14
omar.pol
233
2018-06-14
omar.pol
> The X coordinate of the topmost left corner of the window. Much like
234
2018-06-14
omar.pol
> MyMenu.height and MyMenu.width both a pixel dimension and percentage
235
2018-07-13
omar.pol
> could be supplied. In addition to it, some special value can be used.
236
2018-06-14
omar.pol
237
2018-07-13
omar.pol
> start
238
2018-07-13
omar.pol
239
2018-07-13
omar.pol
> > Alias for 0;
240
2018-07-13
omar.pol
241
2019-10-18
omar.pol
> middle or center
242
2018-07-13
omar.pol
243
2018-07-13
omar.pol
> > Compute the correct value to make sure that mymenu will be
244
2018-07-13
omar.pol
> > horizontally centered;
245
2018-07-13
omar.pol
246
2018-07-13
omar.pol
> end
247
2018-07-13
omar.pol
248
2018-07-13
omar.pol
> > Compute the correct value to make sure that mymenu will be right
249
2018-07-13
omar.pol
> > aligned.
250
2018-07-13
omar.pol
251
2019-10-20
omar.pol
> mx and my
252
2019-10-20
omar.pol
253
2019-10-20
omar.pol
> > These stands for x and y coordinate of the mouse respectively.
254
2019-10-20
omar.pol
255
2018-06-14
omar.pol
MyMenu.y
256
2018-06-14
omar.pol
257
2018-06-14
omar.pol
> The Y coordinate of the topmost left corner of the window. Like the X
258
2018-06-14
omar.pol
> coordinate a pixel dimension, percentage dimension or the special
259
2019-10-20
omar.pol
> value "start", "middle"/"center", "end" or "mx"/"my" could be supplied.
260
2018-06-14
omar.pol
261
2018-07-08
omar.pol
MyMenu.border.size
262
2018-07-08
omar.pol
263
2018-07-08
omar.pol
> A list of number separated by spaces to specify the border of the
264
2018-07-08
omar.pol
> window. The field is parsed like some CSS properties (i.e. padding),
265
2018-07-08
omar.pol
> that is: if only one value is provided then it'll be used for all
266
2018-07-08
omar.pol
> borders; if two value are given than the first will be used for the
267
2018-07-08
omar.pol
> top and bottom border and the former for the left and right border;
268
2018-07-08
omar.pol
> with three value the first is used for the top border, the second for
269
2018-07-08
omar.pol
> the left and right border and the third for the bottom border. If four
270
2018-07-08
omar.pol
> value are given, they'll be applied to the respective border
271
2018-07-08
omar.pol
> clockwise. Other values will be ignored. The default value is 0.
272
2018-07-08
omar.pol
273
2018-10-17
omar.pol
> This particular option accepts a percentage (e.g. 10%) relative to the
274
2018-10-17
omar.pol
> screen width.
275
2018-10-17
omar.pol
276
2018-07-08
omar.pol
MyMenu.border.color
277
2018-07-08
omar.pol
278
2018-07-08
omar.pol
> A list of colors for the borders. This field is parsed like the
279
2018-07-08
omar.pol
> MyMenu.border.size. The default value is black.
280
2018-07-08
omar.pol
281
2018-06-14
omar.pol
MyMenu.prompt.background
282
2018-06-14
omar.pol
283
2018-06-14
omar.pol
> The background of the prompt.
284
2018-06-14
omar.pol
285
2018-06-14
omar.pol
MyMenu.prompt.foreground
286
2018-06-14
omar.pol
287
2018-06-14
omar.pol
> The text color (foreground) of the prompt.
288
2018-06-14
omar.pol
289
2018-06-14
omar.pol
MyMenu.completion.background
290
2018-06-14
omar.pol
291
2018-06-14
omar.pol
> The background of the completions.
292
2018-06-14
omar.pol
293
2018-06-14
omar.pol
MyMenu.completion.foreground
294
2018-06-14
omar.pol
295
2018-06-14
omar.pol
> The text color of the completions.
296
2018-06-14
omar.pol
297
2018-10-17
omar.pol
MyMenu.completion.border.size
298
2018-10-17
omar.pol
299
2018-10-17
omar.pol
> Parsed like MyMenu.border.size, but affects only the
300
2018-10-17
omar.pol
> completion. Default to 0.
301
2018-10-17
omar.pol
302
2018-10-17
omar.pol
MyMenu.completion.border.color
303
2018-10-17
omar.pol
304
2018-10-17
omar.pol
> Parsed like MyMenu.border.color, but affects only the
305
2018-10-17
omar.pol
> completion. Default to #000 (black).
306
2018-10-17
omar.pol
307
2018-10-17
omar.pol
MyMenu.completion.padding
308
2018-10-17
omar.pol
309
2018-10-17
omar.pol
> Parsed like MyMenu.prompt.padding. Default to 10.
310
2018-10-17
omar.pol
311
2018-06-14
omar.pol
MyMenu.completion\_highlighted.background
312
2018-06-14
omar.pol
313
2018-06-14
omar.pol
> The background of the selected completion.
314
2018-06-14
omar.pol
315
2018-06-14
omar.pol
MyMenu.completion\_highlighted.foreground
316
2018-06-14
omar.pol
317
2018-06-14
omar.pol
> The foreground of the selected completion.
318
2018-06-14
omar.pol
319
2018-10-17
omar.pol
MyMenu.completion\_highlighted.border.size
320
2018-10-17
omar.pol
321
2018-10-17
omar.pol
> Parsed like MyMenu.border.size, but affects only the completion
322
2018-10-17
omar.pol
> highlighted. Default to 0.
323
2018-10-17
omar.pol
324
2018-10-17
omar.pol
MyMenu.completion\_highlighted.border.color
325
2018-10-17
omar.pol
326
2018-10-17
omar.pol
> Parsed like MyMenu.border.color, but affects only the completion
327
2018-10-17
omar.pol
> highlighted. Default to #000 (black).
328
2018-10-17
omar.pol
329
2018-10-17
omar.pol
MyMenu.completion\_highlighted.padding
330
2018-10-17
omar.pol
331
2018-10-17
omar.pol
> Parsed like MyMenu.prompt.padding. Default to 10.
332
2018-10-17
omar.pol
333
2018-09-16
omar.pol
# COLORS
334
2018-09-16
omar.pol
335
2018-09-16
omar.pol
MyMenu accept colors only in the form of:
336
2018-09-16
omar.pol
337
2018-09-16
omar.pol
* #rgb
338
2018-09-16
omar.pol
339
2018-09-16
omar.pol
* #rrggbb
340
2018-09-16
omar.pol
341
2018-09-16
omar.pol
* #aarrggbb
342
2018-09-16
omar.pol
343
2018-09-16
omar.pol
The opacity is assumed 0xff (no transparency) if not provided.
344
2018-09-16
omar.pol
345
2018-06-14
omar.pol
# KEYS
346
2018-06-14
omar.pol
347
2018-07-01
omar.pol
This is the list of keybinding recognized by
348
2018-07-01
omar.pol
**mymenu**.
349
2018-07-01
omar.pol
In the following examples, C-c means Control-c.
350
2018-07-01
omar.pol
351
2018-06-14
omar.pol
Esc
352
2018-06-14
omar.pol
353
2018-06-14
omar.pol
> Close the menu without selecting any entry
354
2018-06-14
omar.pol
355
2018-07-01
omar.pol
C-c
356
2018-07-01
omar.pol
357
2018-07-01
omar.pol
> The same as Esc
358
2018-07-01
omar.pol
359
2018-06-14
omar.pol
Enter
360
2018-06-14
omar.pol
361
2018-06-14
omar.pol
> Close the menu and print to stdout what the user typed
362
2018-06-14
omar.pol
363
2018-06-14
omar.pol
C-m
364
2018-06-14
omar.pol
365
2018-08-13
omar.pol
> Confirm but keep looping (if enabled), otherwise complete only
366
2018-06-14
omar.pol
367
2018-06-14
omar.pol
Tab
368
2018-06-14
omar.pol
369
2018-06-14
omar.pol
> Expand the prompt to the next possible completion
370
2018-06-14
omar.pol
371
2018-06-14
omar.pol
Shift Tab
372
2018-06-14
omar.pol
373
2018-06-14
omar.pol
> Expand the prompt to the previous possible completion
374
2018-06-14
omar.pol
375
2018-06-14
omar.pol
C-n
376
2018-06-14
omar.pol
377
2018-06-14
omar.pol
> The same as Tab
378
2018-06-14
omar.pol
379
2018-06-14
omar.pol
C-p
380
2018-06-14
omar.pol
381
2018-06-14
omar.pol
> The same as Shift-Tab
382
2018-06-14
omar.pol
383
2018-06-14
omar.pol
Backspace
384
2018-06-14
omar.pol
385
2018-06-14
omar.pol
> Delete the last character
386
2018-06-14
omar.pol
387
2018-06-14
omar.pol
C-h
388
2018-06-14
omar.pol
389
2018-06-14
omar.pol
> The same as Backspace
390
2018-06-14
omar.pol
391
2018-06-14
omar.pol
C-w
392
2018-06-14
omar.pol
393
2018-06-14
omar.pol
> Delete the last word
394
2018-06-14
omar.pol
395
2018-06-14
omar.pol
C-u
396
2018-06-14
omar.pol
397
2018-06-14
omar.pol
> Delete the whole line
398
2018-06-14
omar.pol
399
2018-07-06
omar.pol
C-i
400
2018-07-06
omar.pol
401
2018-07-06
omar.pol
> Toggle the \`\`first selected'' style. Sometimes, especially with the -a
402
2018-07-06
omar.pol
> option, could be handy to disable that behaviour. Let's say that
403
2018-07-06
omar.pol
> you've typed \`\`fire'' and the first completion is \`\`firefox'' but you
404
2018-07-06
omar.pol
> really want to choose \`\`fire''. While you can type some spaces, this
405
2018-07-06
omar.pol
> keybinding is a more elegant way to change, at runtime, the behaviour
406
2018-07-06
omar.pol
> of the first completion.
407
2019-10-19
omar.pol
408
2019-10-19
omar.pol
Button1
409
2019-10-19
omar.pol
410
2019-10-20
omar.pol
> Clicking on the prompt area closes mymenu, clicking on an item will
411
2019-10-20
omar.pol
> confirm it.
412
2019-10-19
omar.pol
413
2019-10-19
omar.pol
Button3
414
2019-10-19
omar.pol
415
2019-10-20
omar.pol
> Clicking on the prompt area closes mymenu, clicking on an item will
416
2019-10-20
omar.pol
> confirm but keep looping (if enabled) the clicked item, like C-m
417
2018-07-06
omar.pol
418
2019-10-19
omar.pol
Button4,Button5 / scroll
419
2019-10-19
omar.pol
420
2019-10-19
omar.pol
> Scroll through the completions (without changing the selection)
421
2019-10-19
omar.pol
422
2018-07-21
omar.pol
# EXIT STATUS
423
2018-07-21
omar.pol
424
2018-07-21
omar.pol
0 when the user select an entry, 1 when the user press Esc, EX\_USAGE
425
2018-07-21
omar.pol
if used with wrong flags and EX\_UNAVAILABLE if the connection to X
426
2018-07-21
omar.pol
fails.
427
2018-07-21
omar.pol
428
2018-07-21
omar.pol
# EXAMPLES
429
2018-07-21
omar.pol
430
2018-07-21
omar.pol
* Create a simple menu with a couple of entry
431
2018-07-21
omar.pol
432
2018-07-21
omar.pol
cat <<EOF | $SHELL -c "$(mymenu -p "Exec: ")"
433
2018-07-21
omar.pol
firefox
434
2018-07-21
omar.pol
zzz
435
2018-07-21
omar.pol
xcalc -stipple
436
2018-07-21
omar.pol
xlock
437
2018-07-21
omar.pol
gimp
438
2018-07-21
omar.pol
EOF
439
2018-07-21
omar.pol
440
2018-07-21
omar.pol
* Select and play a song from the current mpd playlist
441
2018-07-21
omar.pol
442
2018-09-19
omar.pol
fmt="%position% %artist% - %title%"
443
2018-09-19
omar.pol
if song=$(mpc playlist -f "$fmt" | mymenu -p "Song: " -A -d " "); then
444
2018-09-19
omar.pol
mpc play $(echo $song | sed "s/ .*$//")
445
2018-07-21
omar.pol
fi
446
2018-07-21
omar.pol
447
2018-07-21
omar.pol
# SEE ALSO
448
2018-07-21
omar.pol
449
2018-07-21
omar.pol
dmenu(1)
450
2018-07-21
omar.pol
sysexits(3)
451
2018-07-21
omar.pol
452
2018-07-21
omar.pol
# AUTHORS
453
2018-07-21
omar.pol
454
2018-07-21
omar.pol
Omar Polo &lt;omar.polo@europecom.net&gt;
455
2018-07-21
omar.pol
456
2018-08-13
omar.pol
# CAVEATS
457
2018-06-14
omar.pol
458
2018-06-14
omar.pol
* If, instead of a numeric value, a not-valid number that terminates
459
2018-06-14
omar.pol
with the % sign is supplied, then the default value for that field
460
2018-06-14
omar.pol
will be treated as a percentage. Since this is a misuse of the
461
2018-06-14
omar.pol
resources this behavior isn't strictly considered a bug.
462
2018-06-14
omar.pol
463
2018-07-13
omar.pol
* Keep in mind that sometimes the order of the options matter. First are
464
2018-07-13
omar.pol
parsed (if any) the xrdb options, then the command line flags
465
2018-07-13
omar.pol
**in the provided order!**
466
2018-07-13
omar.pol
That meas that if you're providing first the x coordinate, let's say
467
2018-07-13
omar.pol
"middle", and
468
2018-07-13
omar.pol
**after that**
469
2018-07-13
omar.pol
you are overriding the width, the window
470
2018-07-13
omar.pol
**will not be**
471
2018-07-13
omar.pol
centered.
472
2018-07-13
omar.pol
473
2018-07-13
omar.pol
As a general rule of thumb, if you're overriding the width and/or the
474
2018-07-13
omar.pol
height of the window, remember to override the x and y coordinates as
475
2018-07-13
omar.pol
well.
476
2018-07-13
omar.pol
477
2019-10-20
omar.pol
* Clicking past the last item will be equivalent to clicking the last item.
478
2019-10-20
omar.pol
479
2019-10-20
omar.pol
Void Linux - October 20, 2019
Omar Polo