fixed dmenu.1 version info
[dmenu.git] / dmenu.1
1 .TH DMENU 1 d-0.3
2 .SH NAME
3 dmenu \- dynamic menu
4 .SH SYNOPSIS
5 .B dmenu
6 .RB [ \-v ]
7 .SH DESCRIPTION
8 .SS Overview
9 .B dmenu
10 is a generic, highly customizable, and efficient menu for the X Window System,
11 originally designed for
12 .BR dwm (1).
13 It supports arbitrary, user defined menu contents.
14 .SS Options
15 .TP
16 .B \-v
17 prints version information to stdout, then exits.
18 .SS Usage
19 .B dmenu
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
22 is printed to stdout and
23 .B dmenu
24 terminates.
25 .SS Keyboard Control 
26 .B dmenu
27 is completely controlled by the keyboard.  The following keys are recognized:
28 .TP 2
29 Any printable character
30 appends the character to the text in the input field. This works as a filter:
31 only items containing this text will be displayed.
32 .TP 2
33 Left/Right (Control-p/Control-n)
34 select the previous/next item.
35 .TP 2
36 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
45 Escape (Control-[)
46 quit without selecting an item.
47 .TP 2
48 Backspace (Control-h)
49 remove enough characters from the input field to change its filtering effect.
50 .TP 2
51 Control-u
52 remove all characters from the input field.
53 .SS Exit codes
54 .B dmenu
55 returns
56 .B 0
57 if Enter is pressed on termination,
58 .B 1
59 if Escape is pressed.
60 .SH CUSTOMIZATION
61 .B dmenu
62 is customized by creating a custom config.h and (re)compiling the source
63 code. This keeps it fast, secure and simple.
64 .SH SEE ALSO
65 .BR dwm (1)