dmenu.1 3.3 KB

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