Merge pull request #2 from emanuele6/patch-1
[xmenu] / README
... / ...
CommitLineData
1 XMenu
2
3XMenu is a menu utility for X.
4XMenu receives a menu specification in stdin, shows a menu for the user
5to select one of the options, and outputs the option selected to stdout.
6XMenu can be controlled both via mouse and via keyboard. The menu is a
7pop-up menu (that is, after selecting an option, the menu disappears).
8
9
10§ Features
11
12XMenu comes with the following features:
13• XMenu reads something in and prints something out, the UNIX way.
14• Submenus (some menu entries can spawn another menu).
15• Separators (menu entries can be separated by a line).
16• Icons (menu entries can be preceded by an icon image).
17
18
19§ Files
20
21The files are:
22• ./README: This file.
23• ./Makefile: The makefile.
24• ./config.h: The hardcoded default configuration for XMenu.
25• ./config.mk: The setup for the makefile.
26• ./demo.gif: A gif demonstrating how XMenu works.
27• ./xmenu.1: The manual file (man page) for XMenu.
28• ./xmenu.c: The source code of XMenu.
29• ./xmenu.sh: A sample script illustrating how to use XMenu.
30• ./icons/: Icons for the sample script
31
32
33§ Installation
34
35First, edit ./config.mk to match your local setup.
36
37In order to build XMenu you need the Imlib2, Xlib and Xft header files.
38The default configuration for XMenu is specified in the file config.h,
39you can edit it, but most configuration can be changed at runtime via
40X resources. Enter the following command to build XMenu. This command
41creates the binary file ./xmenu.
42
43 make
44
45By default, XMenu is installed into the /usr/local prefix. Enter the
46following command to install XMenu (if necessary as root). This command
47installs the binary file ./xmenu into the ${PREFIX}/bin/ directory, and
48the manual file ./xmenu.1 into ${MANPREFIX}/man1/ directory.
49
50 make install
51
52
53§ Running XMenu
54
55XMenu receives as input a menu specification where each line is a menu
56entry. Each line can be indented with tabs to represent nested menus.
57Each line is made out of a label and a command separated by any number
58of tabs. Lines without labels are menu separators.
59
60See the script ./xmenu.sh for an example of how to use XMenu to draw a
61simple menu with submenus and separators. The file ./demo.gif shows how
62the menu generated by that script looks like.
63
64Read the manual for more information on running XMenu.
65
66
67§ License
68
69This software is in public domain and is provided AS IS, with NO WARRANTY.