dmenu

my build of dynamic menu
git clone git://git.kocotian.pl/dmenu.git
Log | Files | Refs | README | LICENSE

dmenu.1 (3993B)


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