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.

246 lines
4.2 KiB

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