My dmenu build
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.
 
 
 
 
 
 

222 lines
3.7 KiB

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