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.

4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. XMenu
  2. XMenu is a menu utility for X.
  3. XMenu receives a menu specification in stdin, shows a menu for the user
  4. to select one of the options, and outputs the option selected to stdout.
  5. XMenu can be controlled both via mouse and via keyboard. The menu is a
  6. pop-up menu (that is, after selecting an option, the menu disappears).
  7. NOTE:
  8. The -w (windowed) option was removed from the master branch. It was too
  9. buggy in tiled window managers and required more code to be maintained.
  10. § Files
  11. The files are:
  12. • ./README: This file.
  13. • ./Makefile: The makefile.
  14. • ./config.h: The hardcoded default configuration for XMenu.
  15. • ./config.mk: The setup for the makefile.
  16. • ./xmenu.1: The manual file (man page) for XMenu.
  17. • ./xmenu.c: The source code of XMenu.
  18. • ./xmenu.sh: A sample script illustrating how to use XMenu.
  19. § Installation
  20. First, edit ./config.mk to match your local setup.
  21. In order to build XMenu you need the Xlib and the Xft header files.
  22. The default configuration for XMenu is specified in the file config.h,
  23. you can edit it, but most configuration can be changed at runtime via
  24. X resources. Enter the following command to build XMenu. This command
  25. creates the binary file ./xmenu.
  26. make
  27. By default, XMenu is installed into the /usr/local prefix. Enter the
  28. following command to install XMenu (if necessary as root). This command
  29. installs the binary file ./xmenu into the ${PREFIX}/bin/ directory, and
  30. the manual file ./xmenu.1 into ${MANPREFIX}/man1/ directory.
  31. make install
  32. § Running XMenu
  33. XMenu receives as input a menu specification where each line is a menu
  34. entry. Each line can be indented with tabs to represent nested menus.
  35. Each line is made out of a label and a command separated by any number
  36. of tabs. Lines without labels are menu separators.
  37. See the script ./xmenu.sh for an example of how to use XMenu to draw a
  38. simple menu with submenus and separators. The file ./demo.gif shows how
  39. the menu generated by that script looks like.
  40. Read the manual for more information on running XMenu.
  41. § License
  42. This software is in public domain and is provided AS IS, with NO WARRANTY.