A mirror of phillbush's xmenu.
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.
 
 
 
 
 

140 lines
3.5 KiB

  1. .TH PROG 1
  2. .SH NAME
  3. xmenu \- menu utility for X
  4. .SH SYNOPSIS
  5. .B xmenu
  6. .RB [ \-w ]
  7. .RI [ title ]
  8. .SH DESCRIPTION
  9. .B xmenu
  10. is a menu for X,
  11. it reads a list of newline-separated items from stdin,
  12. shows a menu for the user to select one of the items,
  13. and outputs the item selected to stdout.
  14. .PP
  15. The options are as follows:
  16. .TP
  17. .B -w
  18. Asks the window manager to draw a border around the menus.
  19. This option may be buggy in some window managers, specially tiled ones.
  20. .PP
  21. Each item read from stdin has the following format:
  22. .IP
  23. .EX
  24. ITEM := [TABS] [[IMAGE TABS] LABEL [TABS OUTPUT]] NEWLINE
  25. .EE
  26. .PP
  27. That means that each item is composed by
  28. tabs, followed by an optional image specification, followed by tabs
  29. followed by a label, followed by more tabs, followed by an output,
  30. and ended by a newline. Brackets group optional elements.
  31. .IP
  32. The initial tabs indicate the menu hierarchy:
  33. items indented with a tab is shown in a submenu of the preceding item not indented.
  34. An item without initial tabs is a top-level item.
  35. .IP
  36. The image is a string of the form "IMG:/path/to/image.png".
  37. It specifies a image to be shown as icon at the left of the entry.
  38. .IP
  39. The label is the string that will be shown as a item in the menu.
  40. An item without label is considered a separator and is drawn as a thin line in the menu
  41. separating the item above from the item below.
  42. .IP
  43. The output is the string that will be output after selecting the item.
  44. If an item does not have an output, its label is used as its output.
  45. .IP
  46. The newline terminates the item specification.
  47. .PP
  48. If the argument
  49. .I title
  50. is given, the title of the menu window is set to it.
  51. .SH USAGE
  52. .B xmenu
  53. is controlled by the mouse,
  54. but can also be controlled by the keyboard.
  55. Items can be selected using the arrow keys,
  56. Tab (with and without Shift),
  57. Enter and Esc.
  58. .TP
  59. .BR Down ", " Tab
  60. Cycle through the items in the regular direction.
  61. .TP
  62. .BR Up ", " Shift-Tab
  63. Cycle through the items in the reverse direction.
  64. .TP
  65. .BR Right ", " Enter
  66. Select the highlighted item.
  67. .TP
  68. .B Left
  69. Go to the menu above.
  70. .TP
  71. .B Esc
  72. Go to the menu above or exit xmenu.
  73. .SH RESOURCES
  74. .B
  75. xmenu
  76. understands the following X resources.
  77. .TP
  78. .B xmenu.font
  79. The font in which the labels should be drawn.
  80. .TP
  81. .B xmenu.background
  82. The background color of non-selected itens in the menu.
  83. .TP
  84. .B xmenu.foreground
  85. The color of the label text of non-selected itens in the menu.
  86. .TP
  87. .B xmenu.selbackground
  88. The background color of selected itens in the menu.
  89. .TP
  90. .B xmenu.selforeground
  91. The color of the label text of selected itens in the menu.
  92. .TP
  93. .B xmenu.border
  94. The color of the border around the menu.
  95. .TP
  96. .B xmenu.separator
  97. The color of the separator between itens in the menu.
  98. .TP
  99. .B xmenu.width
  100. The minimum width, in pixels, of the items in the menu.
  101. .TP
  102. .B xmenu.padding
  103. The size in pixels of the padding around the label text in items in the menu.
  104. .TP
  105. .B xmenu.borderWidth
  106. The size in pixels of the border around the menu.
  107. .TP
  108. .B xmenu.separatorWidth
  109. The size in pixels of the item separator.
  110. .SH EXAMPLES
  111. The following is an script exemplifying the use of
  112. .BR xmenu .
  113. The output is redirected to
  114. .IR sh (1),
  115. creating a command to be run by the shell.
  116. .IP
  117. .EX
  118. #!/bin/sh
  119. cat <<EOF | xmenu | sh &
  120. Applications
  121. IMG:./web.png Web Browser firefox
  122. Image editor gimp
  123. Terminal (xterm) xterm
  124. Terminal (urxvt) urxvt
  125. Terminal (st) st
  126. Shutdown poweroff
  127. Reboot reboot
  128. EOF
  129. .EE
  130. .PP
  131. For example, by selecting \(lqApplications\(rq, a new menu will appear.
  132. Selecting \(lqWeb Browser\(rq in the new menu will open firefox.
  133. .SH SEE ALSO
  134. .IR dmenu (1),
  135. .IR 9menu (1),
  136. .IR thingmenu (1)