dmenu.1 (3423B)
1 .TH DMENU 1 dmenu\-VERSION 2 .SH NAME 3 dmenu \- dynamic menu 4 .SH SYNOPSIS 5 .B dmenu 6 .RB [ \-bfivP ] 7 .RB [ \-l 8 .IR lines ] 9 .RB [ \-m 10 .IR monitor ] 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 [ \-w 24 .IR windowid ] 25 .P 26 .BR dmenu_run " ..." 27 .SH DESCRIPTION 28 .B dmenu 29 is a dynamic menu for X, which reads a list of newline\-separated items from 30 stdin. When the user selects an item and presses Return, their choice is printed 31 to stdout and dmenu terminates. Entering text will narrow the items to those 32 matching the tokens in the input. 33 .P 34 .B dmenu_run 35 is a script used by 36 .IR dwm (1) 37 which lists programs in the user's $PATH and runs the result in their $SHELL. 38 .SH OPTIONS 39 .TP 40 .B \-b 41 dmenu appears at the bottom of the screen. 42 .TP 43 .B \-c 44 dmenu appears centered on the screen. 45 .TP 46 .B \-f 47 dmenu grabs the keyboard before reading stdin if not reading from a tty. This 48 is faster, but will lock up X until stdin reaches end\-of\-file. 49 .TP 50 .B \-i 51 dmenu matches menu items case insensitively. 52 .TP 53 .B \-P 54 dmenu will not directly display the keyboard input, but instead replace it with dots. All data from stdin will be ignored. 55 .TP 56 .BI \-l " lines" 57 dmenu lists items vertically, with the given number of lines. 58 .TP 59 .BI \-h " height" 60 dmenu uses a menu line of at least 'height' pixels tall, but no less than 8. 61 .TP 62 .BI \-m " monitor" 63 dmenu is displayed on the monitor number supplied. Monitor numbers are starting 64 from 0. 65 .TP 66 .BI \-p " prompt" 67 defines the prompt to be displayed to the left of the input field. 68 .TP 69 .BI \-fn " font" 70 defines the font or font set used. 71 .TP 72 .BI \-nb " color" 73 defines the normal background color. 74 .IR #RGB , 75 .IR #RRGGBB , 76 and X color names are supported. 77 .TP 78 .BI \-nf " color" 79 defines the normal foreground color. 80 .TP 81 .BI \-sb " color" 82 defines the selected background color. 83 .TP 84 .BI \-sf " color" 85 defines the selected foreground color. 86 .TP 87 .B \-v 88 prints version information to stdout, then exits. 89 .TP 90 .BI \-w " windowid" 91 embed into windowid. 92 .SH USAGE 93 dmenu is completely controlled by the keyboard. Items are selected using the 94 arrow keys, page up, page down, home, and end. 95 .TP 96 .B Tab 97 Copy the selected item to the input field. 98 .TP 99 .B Return 100 Confirm selection. Prints the selected item to stdout and exits, returning 101 success. 102 .TP 103 .B Ctrl-Return 104 Confirm selection. Prints the selected item to stdout and continues. 105 .TP 106 .B Shift\-Return 107 Confirm input. Prints the input text to stdout and exits, returning success. 108 .TP 109 .B Escape 110 Exit without selecting an item, returning failure. 111 .TP 112 .B Ctrl-Left 113 Move cursor to the start of the current word 114 .TP 115 .B Ctrl-Right 116 Move cursor to the end of the current word 117 .TP 118 .B C\-a 119 Home 120 .TP 121 .B C\-b 122 Left 123 .TP 124 .B C\-c 125 Escape 126 .TP 127 .B C\-d 128 Delete 129 .TP 130 .B C\-e 131 End 132 .TP 133 .B C\-f 134 Right 135 .TP 136 .B C\-g 137 Escape 138 .TP 139 .B C\-h 140 Backspace 141 .TP 142 .B C\-i 143 Tab 144 .TP 145 .B C\-j 146 Return 147 .TP 148 .B C\-J 149 Shift-Return 150 .TP 151 .B C\-k 152 Delete line right 153 .TP 154 .B C\-m 155 Return 156 .TP 157 .B C\-M 158 Shift-Return 159 .TP 160 .B C\-n 161 Down 162 .TP 163 .B C\-p 164 Up 165 .TP 166 .B C\-u 167 Delete line left 168 .TP 169 .B C\-w 170 Delete word left 171 .TP 172 .B C\-y 173 Paste from primary X selection 174 .TP 175 .B C\-Y 176 Paste from X clipboard 177 .TP 178 .B M\-b 179 Move cursor to the start of the current word 180 .TP 181 .B M\-f 182 Move cursor to the end of the current word 183 .TP 184 .B M\-g 185 Home 186 .TP 187 .B M\-G 188 End 189 .TP 190 .B M\-h 191 Up 192 .TP 193 .B M\-j 194 Page down 195 .TP 196 .B M\-k 197 Page up 198 .TP 199 .B M\-l 200 Down 201 .SH SEE ALSO 202 .IR dwm (1), 203 .IR stest (1)