no -m, cleanup
[dmenu.git] / dmenu.1
1 .TH DMENU 1 dmenu\-VERSION
2 .SH NAME
3 dmenu \- dynamic menu
4 .SH SYNOPSIS
5 .B dmenu
6 .RB [ \-b ]
7 .RB [ \-f ]
8 .RB [ \-i ]
9 .RB [ \-l
10 .IR lines ]
11 .RB [ \-p
12 .IR prompt ]
13 .RB [ \-fn
14 .IR font ]
15 .RB [ \-nb
16 .IR color ]
17 .RB [ \-nf
18 .IR color ]
19 .RB [ \-sb
20 .IR color ]
21 .RB [ \-sf
22 .IR color ]
23 .RB [ \-v ]
24 .P
25 .BR dmenu_run " ..."
26 .P
27 .B dmenu_path
28 .SH DESCRIPTION
29 .B dmenu
30 is a dynamic menu for X, originally designed for
31 .BR dwm (1).
32 It manages huge numbers of user\-defined menu items efficiently.
33 .P
34 dmenu reads a list of newline\-separated items from stdin and creates a menu.
35 When the user selects an item or enters any text and presses Return, their
36 choice is printed to stdout and dmenu terminates.
37 .P
38 .B dmenu_run
39 is a dmenu script used by dwm which lists programs in the user's PATH and
40 executes the selected item.
41 .P
42 .B dmenu_path
43 is a script used by dmenu_run to find and cache a list of executables.
44 .SH OPTIONS
45 .TP
46 .B \-b
47 dmenu appears at the bottom of the screen.
48 .TP
49 .B \-f
50 dmenu grabs the keyboard before reading stdin.  This is faster, but may lock up
51 X if stdin is from a terminal.
52 .TP
53 .B \-i
54 dmenu matches menu items case insensitively.
55 .TP
56 .BI \-l " lines"
57 dmenu lists items vertically, with the given number of lines.
58 .TP
59 .BI \-p " prompt"
60 defines the prompt to be displayed to the left of the input field.
61 .TP
62 .BI \-fn " font"
63 defines the font or font set used.
64 .TP
65 .BI \-nb " color"
66 defines the normal background color.
67 .IR #RGB ,
68 .IR #RRGGBB ,
69 and X color names are supported.
70 .TP
71 .BI \-nf " color"
72 defines the normal foreground color.
73 .TP
74 .BI \-sb " color"
75 defines the selected background color.
76 .TP
77 .BI \-sf " color"
78 defines the selected foreground color.
79 .TP
80 .B \-v
81 prints version information to stdout, then exits.
82 .SH USAGE
83 dmenu is completely controlled by the keyboard.  Besides standard Unix line
84 editing and item selection (arrow keys, page up/down, home and end), the
85 following keys are recognized:
86 .TP
87 .B Tab (Ctrl\-i)
88 Copy the selected item to the input field.
89 .TP
90 .B Return (Ctrl\-j)
91 Confirm selection.  Prints the selected item to stdout and exits, returning
92 success.
93 .TP
94 .B Shift\-Return (Ctrl\-Shift\-j)
95 Confirm input.  Prints the input text to stdout and exits, returning success.
96 .TP
97 .B Escape (Ctrl\-c)
98 Exit without selecting an item, returning failure.
99 .TP
100 .B Ctrl\-y
101 Paste the current X selection into the input field.
102 .SH SEE ALSO
103 .BR dwm (1)