made dmenu(1) more dwm(1) alike
4e009770
1 file(s) · +22 −23
| 15 | 15 | .TP |
|
| 16 | 16 | .B \-v |
|
| 17 | 17 | prints version information to stdout, then exits. |
|
| 18 | - | .SS Usage |
|
| 18 | + | .SH USAGE |
|
| 19 | 19 | .B dmenu |
|
| 20 | 20 | reads a list of newline-separated items from stdin and creates a menu. |
|
| 21 | - | When the user selects an item or enters any text and presses Enter, his choice |
|
| 21 | + | When the user selects an item or enters any text and presses Return, his choice |
|
| 22 | 22 | is printed to stdout and |
|
| 23 | 23 | .B dmenu |
|
| 24 | 24 | terminates. |
|
| 25 | - | .SS Keyboard Control |
|
| 26 | 25 | .B dmenu |
|
| 27 | 26 | is completely controlled by the keyboard. The following keys are recognized: |
|
| 28 | - | .TP 2 |
|
| 27 | + | .TP |
|
| 29 | 28 | Any printable character |
|
| 30 | - | appends the character to the text in the input field. This works as a filter: |
|
| 29 | + | Appends the character to the text in the input field. This works as a filter: |
|
| 31 | 30 | only items containing this text will be displayed. |
|
| 32 | - | .TP 2 |
|
| 31 | + | .TP |
|
| 33 | 32 | Left/Right (Control-p/Control-n) |
|
| 34 | - | select the previous/next item. |
|
| 35 | - | .TP 2 |
|
| 33 | + | Select the previous/next item. |
|
| 34 | + | .TP |
|
| 36 | 35 | Tab (Control-i) |
|
| 37 | - | copy the selected item to the input field. |
|
| 38 | - | .TP 2 |
|
| 39 | - | Enter (Control-j) |
|
| 40 | - | confirm selection and quit (print the selected item to stdout). |
|
| 41 | - | .TP 2 |
|
| 42 | - | Shift-Enter (Shift-Control-j) |
|
| 43 | - | confirm selection and quit (print the text in the input field to stdout). |
|
| 44 | - | .TP 2 |
|
| 36 | + | Copy the selected item to the input field. |
|
| 37 | + | .TP |
|
| 38 | + | Return (Control-j) |
|
| 39 | + | Confirm selection and quit (print the selected item to stdout). |
|
| 40 | + | .TP |
|
| 41 | + | Shift-Return (Shift-Control-j) |
|
| 42 | + | Confirm selection and quit (print the text in the input field to stdout). |
|
| 43 | + | .TP |
|
| 45 | 44 | Escape (Control-[) |
|
| 46 | - | quit without selecting an item. |
|
| 47 | - | .TP 2 |
|
| 45 | + | Quit without selecting an item. |
|
| 46 | + | .TP |
|
| 48 | 47 | Backspace (Control-h) |
|
| 49 | - | remove enough characters from the input field to change its filtering effect. |
|
| 50 | - | .TP 2 |
|
| 48 | + | Remove enough characters from the input field to change its filtering effect. |
|
| 49 | + | .TP |
|
| 51 | 50 | Control-u |
|
| 52 | - | remove all characters from the input field. |
|
| 53 | - | .SS Exit codes |
|
| 51 | + | Remove all characters from the input field. |
|
| 52 | + | .P |
|
| 54 | 53 | .B dmenu |
|
| 55 | 54 | returns |
|
| 56 | 55 | .B 0 |
|
| 57 | - | if Enter is pressed on termination, |
|
| 56 | + | if Return is pressed on termination, |
|
| 58 | 57 | .B 1 |
|
| 59 | 58 | if Escape is pressed. |
|
| 60 | 59 | .SH CUSTOMIZATION |