Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

251 lines
4.3 KiB

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