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.

README 3.5 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. Check out my other project, xclickroot[0] for an application that can
  8. spawn xmenu by right clicking on the root window (i.e. on the desktop).
  9. [0]: https://github.com/phillbush/xclickroot
  10. § Features
  11. XMenu comes with the following features:
  12. • XMenu reads something in and prints something out, the UNIX way.
  13. • Submenus (some menu entries can spawn another menu).
  14. • Separators (menu entries can be separated by a line).
  15. • Icons (menu entries can be preceded by an icon image).
  16. § Files
  17. The files are:
  18. • ./README: This file.
  19. • ./Makefile: The makefile.
  20. • ./config.h: The hardcoded default configuration for XMenu.
  21. • ./config.mk: The setup for the makefile.
  22. • ./demo.gif: A gif demonstrating how XMenu works.
  23. • ./xmenu.1: The manual file (man page) for XMenu.
  24. • ./xmenu.c: The source code of XMenu.
  25. • ./xmenu.sh: A sample script illustrating how to use XMenu.
  26. • ./icons/: Icons for the sample script
  27. § Installation
  28. First, edit ./config.mk to match your local setup.
  29. In order to build XMenu you need the Imlib2, Xlib and Xft header files.
  30. The default configuration for XMenu is specified in the file config.h,
  31. you can edit it, but most configuration can be changed at runtime via
  32. X resources. Enter the following command to build XMenu. This command
  33. creates the binary file ./xmenu.
  34. make
  35. By default, XMenu is installed into the /usr/local prefix. Enter the
  36. following command to install XMenu (if necessary as root). This command
  37. installs the binary file ./xmenu into the ${PREFIX}/bin/ directory, and
  38. the manual file ./xmenu.1 into ${MANPREFIX}/man1/ directory.
  39. make install
  40. § Running XMenu
  41. XMenu receives as input a menu specification where each line is a menu
  42. entry. Each line can be indented with tabs to represent nested menus.
  43. Each line is made out of a label and a command separated by any number
  44. of tabs. Lines without labels are menu separators.
  45. See the script ./xmenu.sh for an example of how to use XMenu to draw a
  46. simple menu with submenus and separators. The file ./demo.gif shows how
  47. the menu generated by that script looks like.
  48. Read the manual for more information on running XMenu.
  49. § License
  50. MIT/X Consortium License
  51. © 2020 phillbush
  52. Permission is hereby granted, free of charge, to any person obtaining a
  53. copy of this software and associated documentation files (the "Software"),
  54. to deal in the Software without restriction, including without limitation
  55. the rights to use, copy, modify, merge, publish, distribute, sublicense,
  56. and/or sell copies of the Software, and to permit persons to whom the
  57. Software is furnished to do so, subject to the following conditions:
  58. The above copyright notice and this permission notice shall be included in
  59. all copies or substantial portions of the Software.
  60. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  61. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  62. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  63. THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  64. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  65. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  66. DEALINGS IN THE SOFTWARE.