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 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <p align="center">
  2. <img src="/demo.gif", title="demo"/>
  3. </p>
  4. # XMenu
  5. XMenu is a menu utility for X.
  6. XMenu receives a menu specification in stdin, shows a menu for the user
  7. to select one of the options, and outputs the option selected to stdout.
  8. XMenu can be controlled both via mouse and via keyboard.
  9. In order to generate a menu of applications based on .desktop entries,
  10. as specified by XDG, checkout [xdg-xmenu](https://github.com/OliverLew/xdg-xmenu)
  11. by [OliverLew](https://github.com/OliverLew).
  12. Check out my other project, [xclickroot](https://github.com/phillbush/xclickroot) for an application that can
  13. spawn xmenu by right clicking on the root window (i.e. on the desktop).
  14. ## Features
  15. XMenu comes with the following features:
  16. * XMenu reads something in and prints something out, the UNIX way.
  17. * Submenus (some menu entries can spawn another menu).
  18. * Separators (menu entries can be separated by a line).
  19. * Icons (menu entries can be preceded by an icon image).
  20. * X resources support (you don't need to recompile xmenu for configuring it).
  21. ## Files
  22. The files are:
  23. * `./README`: This file.
  24. * `./Makefile`: The makefile.
  25. * `./config.h`: The hardcoded default configuration for XMenu.
  26. * `./config.mk`: The setup for the makefile.
  27. * `./demo.gif`: A gif demonstrating how XMenu works.
  28. * `./xmenu.1`: The manual file (man page) for XMenu.
  29. * `./xmenu.c`: The source code of XMenu.
  30. * `./xmenu.sh`: A sample script illustrating how to use XMenu.
  31. * `./icons/`: Icons for the sample script
  32. ## Installation
  33. First, edit `./config.mk` to match your local setup.
  34. In order to build XMenu you need the `Imlib2`, `Xlib`, `Xinerama` and `Xft` header files.
  35. The default configuration for XMenu is specified in the file `config.h`,
  36. you can edit it, but most configuration can be changed at runtime via
  37. X resources. Enter the following command to build XMenu. This command
  38. creates the binary file `./xmenu`.
  39. make
  40. By default, XMenu is installed into the `/usr/local` prefix. Enter the
  41. following command to install XMenu (if necessary as root). This command
  42. installs the binary file `./xmenu` into the `${PREFIX}/bin/` directory, and
  43. the manual file `./xmenu.1` into `${MANPREFIX}/man1/` directory.
  44. make install
  45. ## Running XMenu
  46. XMenu receives as input a menu specification where each line is a menu
  47. entry. Each line can be indented with tabs to represent nested menus.
  48. Each line is made out of a label and a command separated by any number
  49. of tabs. Lines without labels are menu separators.
  50. See the script `./xmenu.sh` for an example of how to use XMenu to draw a
  51. simple menu with submenus and separators. The file `./demo.gif` shows how
  52. the menu generated by that script looks like.
  53. Read the [manual](https://github.com/phillbush/xmenu/wiki) for more information on running XMenu.