A mirror of phillbush's xmenu.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 

223 行
5.6 KiB

  1. .TH XMENU 1
  2. .SH NAME
  3. xmenu \- menu utility for X
  4. .SH SYNOPSIS
  5. .B xmenu
  6. .RB [ \-irw ]
  7. .RB [ -p
  8. .IR position ]
  9. .RI [ title ]
  10. .SH DESCRIPTION
  11. .B xmenu
  12. is a menu for X,
  13. it reads a list of newline-separated items from stdin,
  14. shows a menu for the user to select one of the items,
  15. and outputs the item selected to stdout.
  16. .PP
  17. The options are as follows:
  18. .TP
  19. .B -i
  20. Disable icons.
  21. This makes xmenu loading faster when not using icons.
  22. .TP
  23. .BI -p " position"
  24. Set the position to spawn xmenu.
  25. Without this option, xmenu spawns next to the cursor.
  26. .I position
  27. is a string of the form
  28. .BR INTxINT[:MONITOR] ,
  29. where the first INT is the x position and the second INT is the y position.
  30. The monitor part between brackets is optional.
  31. .B MONITOR
  32. can be a number from 0 to the number of monitors minus 1;
  33. or it can be a string like
  34. .B current
  35. or
  36. .BR cursor .
  37. If present, the monitor specifies that the position is relative to the upper left corner
  38. of that monitor.
  39. If
  40. .B monitor
  41. is
  42. .B current
  43. or
  44. .BR cursor ,
  45. the monitor to be used is that where the cursor is in.
  46. For example,
  47. .B -p 0x0:cursor
  48. specifies that
  49. .B xmenu
  50. must spawn at the position 0x0 of the monitor where the cursor is in.
  51. And
  52. .B -p 100x500:0
  53. specifies that
  54. .B xmenu
  55. must spawn at the position 100x500 of the monitor 0.
  56. .TP
  57. .B -r
  58. If this option is set, the right mouse button is disabled;
  59. so pressing it will not trigger any menu item.
  60. .TP
  61. .B -w
  62. Asks the window manager to draw a border around the menus.
  63. This option may be buggy in some window managers,
  64. specially tiled ones that do not respect window hints.
  65. .PP
  66. Each item read from stdin has the following format:
  67. .IP
  68. .EX
  69. ITEM := [TABS] [[IMAGE TABS] LABEL [TABS OUTPUT]] NEWLINE
  70. .EE
  71. .PP
  72. That means that each item is composed by
  73. tabs, followed by an optional image specification, followed by tabs
  74. followed by a label, followed by more tabs, followed by an output,
  75. and ended by a newline. Brackets group optional elements.
  76. .IP
  77. The initial tabs indicate the menu hierarchy:
  78. items indented with a tab is shown in a submenu of the preceding item not indented.
  79. An item without initial tabs is a top-level item.
  80. .IP
  81. The image is a string of the form "IMG:/path/to/image.png".
  82. It specifies a image to be shown as icon at the left of the entry.
  83. .IP
  84. The label is the string that will be shown as a item in the menu.
  85. An item without label is considered a separator and is drawn as a thin line in the menu
  86. separating the item above from the item below.
  87. .IP
  88. The output is the string that will be output after selecting the item.
  89. If an item does not have an output, its label is used as its output.
  90. .IP
  91. The newline terminates the item specification.
  92. .PP
  93. If the argument
  94. .I title
  95. is given, the title of the menu window is set to it.
  96. .SH USAGE
  97. .B xmenu
  98. is controlled by the mouse,
  99. but can also be controlled by the keyboard.
  100. Items can be selected using the arrow keys,
  101. Tab (with and without Shift),
  102. Home, End,
  103. Enter and Esc, and 1-9 keys.
  104. Items can also be selected by typing the first several characters in it.
  105. .TP
  106. .BR Home
  107. Select the first item in the menu.
  108. .TP
  109. .BR End
  110. Select the last item in the menu.
  111. .TP
  112. .BR Down
  113. Cycle through the items in the regular direction.
  114. .TP
  115. .BR Tab
  116. Cycle through the items in the regular direction.
  117. When the type\-to\-select feature is active, cycle through matching items instead.
  118. .TP
  119. .BR Up
  120. Cycle through the items in the reverse direction.
  121. .TP
  122. .BR Shift-Tab
  123. Cycle through the items in the reverse direction.
  124. When the type\-to\-select feature is active, cycle through matching items instead.
  125. .TP
  126. .BR Right ", " Enter
  127. Select the highlighted item.
  128. .TP
  129. .B Left
  130. Go to the menu above.
  131. .TP
  132. .B Esc
  133. Go to the menu above or exit xmenu.
  134. .PP
  135. .B xmenu
  136. features the type\-to\-select selecting style,
  137. where typing a string will select the first item matching it.
  138. .PP
  139. Additional key bindings can be set at compile time by changing the
  140. .B config.h
  141. file.
  142. .SH RESOURCES
  143. .B
  144. xmenu
  145. understands the following X resources.
  146. .TP
  147. .B xmenu.font
  148. The font in which the labels should be drawn.
  149. Multiple fonts can be added as fallback fonts;
  150. they must be separated by a comma.
  151. .TP
  152. .B xmenu.background
  153. The background color of non-selected items in the menu.
  154. .TP
  155. .B xmenu.foreground
  156. The color of the label text of non-selected items in the menu.
  157. .TP
  158. .B xmenu.selbackground
  159. The background color of selected items in the menu.
  160. .TP
  161. .B xmenu.selforeground
  162. The color of the label text of selected items in the menu.
  163. .TP
  164. .B xmenu.border
  165. The color of the border around the menu.
  166. .TP
  167. .B xmenu.separator
  168. The color of the separator between items in the menu.
  169. .TP
  170. .B xmenu.gap
  171. The gap, in pixels, between the menus.
  172. .TP
  173. .B xmenu.width
  174. The minimum width, in pixels, of the items in the menu.
  175. .TP
  176. .B xmenu.height
  177. The size in pixels of the height of a single menu item.
  178. .TP
  179. .B xmenu.borderWidth
  180. The size in pixels of the border around the menu.
  181. .TP
  182. .B xmenu.separatorWidth
  183. The size in pixels of the item separator.
  184. .TP
  185. .B xmenu.alignment
  186. If set to
  187. .BR "\(dqleft\(dq" ,
  188. .BR "\(dqcenter\(dq" ,
  189. or
  190. .BR "\(dqright\(dq" ,
  191. text is aligned to the left, center, or right of the menu, respectively.
  192. By default, text is aligned to the left.
  193. .SH EXAMPLES
  194. The following script illustrates the use of
  195. .BR xmenu .
  196. The output is redirected to
  197. .IR sh (1),
  198. creating a command to be run by the shell.
  199. .IP
  200. .EX
  201. #!/bin/sh
  202. cat <<EOF | xmenu | sh &
  203. Applications
  204. IMG:./web.png Web Browser firefox
  205. IMG:./gimp.png Image editor gimp
  206. Terminal (xterm) xterm
  207. Terminal (urxvt) urxvt
  208. Terminal (st) st
  209. Shutdown poweroff
  210. Reboot reboot
  211. EOF
  212. .EE
  213. .PP
  214. For example, by selecting \(lqApplications\(rq, a new menu will appear.
  215. Selecting \(lqWeb Browser\(rq in the new menu opens firefox.
  216. .SH SEE ALSO
  217. .IR dmenu (1),
  218. .IR 9menu (1),
  219. .IR thingmenu (1)