Blame


1 f5e234d6 2018-05-18 omar.polo .Dd $Mdocdate$
2 f5e234d6 2018-05-18 omar.polo .Dt MYMENU 1
3 f5e234d6 2018-05-18 omar.polo .Os
4 f5e234d6 2018-05-18 omar.polo .Sh NAME
5 f5e234d6 2018-05-18 omar.polo .Nm mymenu
6 f5e234d6 2018-05-18 omar.polo .Nd simple menu for XOrg
7 f5e234d6 2018-05-18 omar.polo .Sh DESCRIPTION
8 f5e234d6 2018-05-18 omar.polo The
9 f5e234d6 2018-05-18 omar.polo .Nm
10 f5e234d6 2018-05-18 omar.polo utility a simple graphical menu for XOrg. It read the items from
11 f5e234d6 2018-05-18 omar.polo .Ic stdin
12 f5e234d6 2018-05-18 omar.polo and print the user selection to
13 f5e234d6 2018-05-18 omar.polo .Ic stdout
14 f5e234d6 2018-05-18 omar.polo on exit.
15 f5e234d6 2018-05-18 omar.polo .Sh RESOURCES
16 f5e234d6 2018-05-18 omar.polo
17 f5e234d6 2018-05-18 omar.polo Most of the appearance of the menu is defined through the \fBX
18 f5e234d6 2018-05-18 omar.polo Resource Database\fR.
19 f5e234d6 2018-05-18 omar.polo
20 f5e234d6 2018-05-18 omar.polo Application specific resources:
21 f5e234d6 2018-05-18 omar.polo .Bl -tag -width Ds
22 f5e234d6 2018-05-18 omar.polo .It MyMenu.font
23 9e94fcbe 2018-05-22 omar.polo The font name to use. By default is set to "fixed" if compiled without
24 9e94fcbe 2018-05-22 omar.polo Xft(3) support, "monospace" otherwise. Without Xft(3) only bitmap font
25 9e94fcbe 2018-05-22 omar.polo are supported.
26 36a15a9f 2018-05-19 omar.polo .It MyMenu.layout
27 36a15a9f 2018-05-19 omar.polo The layout of the menu. The possible values are "horizontal" and
28 36a15a9f 2018-05-19 omar.polo "vertical", with the default being "horizontal". Every other value
29 36a15a9f 2018-05-19 omar.polo than "horizontal" is treated like "vertical", but this is kinda an
30 36a15a9f 2018-05-19 omar.polo implementation detail and not something to be relied on, since in the
31 8758854a 2018-05-20 omar.polo future other layout could be added as well.
32 8758854a 2018-05-20 omar.polo .It Mymenu.prompt
33 8758854a 2018-05-20 omar.polo A string that is rendered before the user input. Default to "$ ".
34 f5e234d6 2018-05-18 omar.polo .It MyMenu.width
35 f5e234d6 2018-05-18 omar.polo The width of the menu. If a numeric value is given (e.g. 400) is
36 f5e234d6 2018-05-18 omar.polo interpreted as pixel, if it ends with a percentage symbol `%'
37 f5e234d6 2018-05-18 omar.polo (e.g. 40%) the relative percentage will be computed (relative to the
38 8758854a 2018-05-20 omar.polo monitor width).
39 f5e234d6 2018-05-18 omar.polo .It MyMenu.height
40 f5e234d6 2018-05-18 omar.polo The height of the menu. Like MyMenu.width if a numeric value is given
41 f5e234d6 2018-05-18 omar.polo is interpreted as pixel, if it ends with a percentage symbol `%' the
42 8758854a 2018-05-20 omar.polo relative percentage will be computed (relative to the monitor height).
43 f5e234d6 2018-05-18 omar.polo .It MyMenu.x
44 f5e234d6 2018-05-18 omar.polo The X coordinate of the topmost left corner of the window. Much like
45 f5e234d6 2018-05-18 omar.polo MyMenu.height and MyMenu.width both a pixel dimension and percentage
46 f5e234d6 2018-05-18 omar.polo could be supplied. In addition to it, the special value "middle" could
47 f5e234d6 2018-05-18 omar.polo be used: in that case the window will be centered on the x axes.
48 f5e234d6 2018-05-18 omar.polo .It MyMenu.y
49 f5e234d6 2018-05-18 omar.polo The Y coordinate of the topmost left corner of the window. Like the X
50 f5e234d6 2018-05-18 omar.polo coordinate, pixel dimension, percentage dimension and the special
51 f5e234d6 2018-05-18 omar.polo value "middle" could be supplied.
52 f5e234d6 2018-05-18 omar.polo .It MyMenu.prompt.background
53 8758854a 2018-05-20 omar.polo The background of the prompt.
54 f5e234d6 2018-05-18 omar.polo .It MyMenu.prompt.foreground
55 8758854a 2018-05-20 omar.polo The text color (foreground) of the prompt.
56 f5e234d6 2018-05-18 omar.polo .It MyMenu.completion.background
57 8758854a 2018-05-20 omar.polo The background of the completions.
58 f5e234d6 2018-05-18 omar.polo .It MyMenu.completion.foreground
59 8758854a 2018-05-20 omar.polo The text color of the completions.
60 f5e234d6 2018-05-18 omar.polo .It MyMenu.completion_highlighted.background
61 8758854a 2018-05-20 omar.polo The background of the selected completion.
62 f5e234d6 2018-05-18 omar.polo .It MyMenu.completion_highlighted.foreground
63 8758854a 2018-05-20 omar.polo The foreground of the selected completion.
64 f5e234d6 2018-05-18 omar.polo .El
65 f5e234d6 2018-05-18 omar.polo
66 f5e234d6 2018-05-18 omar.polo .Sh KEYS
67 f5e234d6 2018-05-18 omar.polo .Bl -tag -width indent-two
68 f5e234d6 2018-05-18 omar.polo .It Esc
69 f5e234d6 2018-05-18 omar.polo Close the menu without selecting any entry
70 f5e234d6 2018-05-18 omar.polo .It Enter
71 f5e234d6 2018-05-18 omar.polo Close the menu and print to stdout what the user typed
72 347d23da 2018-05-19 omar.polo .It C-m
73 347d23da 2018-05-19 omar.polo The same as Enter
74 f5e234d6 2018-05-18 omar.polo .It Tab
75 f5e234d6 2018-05-18 omar.polo Expand the prompt to the next possible completion
76 f5e234d6 2018-05-18 omar.polo .It Shift Tab
77 f5e234d6 2018-05-18 omar.polo Expand the prompt to the previous possible completion
78 f5e234d6 2018-05-18 omar.polo .It Backspace
79 f5e234d6 2018-05-18 omar.polo Delete the last character
80 347d23da 2018-05-19 omar.polo .It C-h
81 347d23da 2018-05-19 omar.polo The same as Backspace
82 347d23da 2018-05-19 omar.polo .It C-w
83 347d23da 2018-05-19 omar.polo Delete the last word
84 347d23da 2018-05-19 omar.polo .It C-u
85 347d23da 2018-05-19 omar.polo Delete the whole line
86 f5e234d6 2018-05-18 omar.polo .El
87 f5e234d6 2018-05-18 omar.polo
88 f5e234d6 2018-05-18 omar.polo .Sh BUGS
89 f5e234d6 2018-05-18 omar.polo .Bl -bullet
90 f5e234d6 2018-05-18 omar.polo .It
91 f5e234d6 2018-05-18 omar.polo If, instead of a numeric value, a not-valid number that terminates
92 f5e234d6 2018-05-18 omar.polo with the % sign is supplied, then the default value for that field
93 f5e234d6 2018-05-18 omar.polo will be treated as a percentage. Since this is a misuse of the
94 f5e234d6 2018-05-18 omar.polo resources this behavior isn't strictly considered a bug.
95 9e94fcbe 2018-05-22 omar.polo .It
96 9e94fcbe 2018-05-22 omar.polo C-w (delete last word) does not work well with multi-byte string. The
97 9e94fcbe 2018-05-22 omar.polo whole UTF-8 support is still kinda naïve and should be improved.
98 f5e234d6 2018-05-18 omar.polo .El
99 f5e234d6 2018-05-18 omar.polo
100 f5e234d6 2018-05-18 omar.polo .Sh EXIT STATUS
101 f5e234d6 2018-05-18 omar.polo
102 f5e234d6 2018-05-18 omar.polo 0 when the user select an entry, 1 when the user press Esc and
103 f5e234d6 2018-05-18 omar.polo EX_UNAVAILABLE if the connection to X fails.
104 f5e234d6 2018-05-18 omar.polo
105 f5e234d6 2018-05-18 omar.polo .Sh SEE ALSO
106 f5e234d6 2018-05-18 omar.polo .Xr dmenu 1
107 f5e234d6 2018-05-18 omar.polo .Xr sysexits 3
108 f5e234d6 2018-05-18 omar.polo
109 f5e234d6 2018-05-18 omar.polo .Sh AUTHORS
110 f5e234d6 2018-05-18 omar.polo .An Omar Polo <omar.polo@europecom.net>
111 f5e234d6 2018-05-18 omar.polo