Updating README to mention patches
[xmenu] / README
CommitLineData
571d99e1 1 XMenu
a7732690 2
571d99e1 3XMenu is a menu utility for X.
4XMenu receives a menu specification in stdin, shows a menu for the user
a7732690 5to select one of the options, and outputs the option selected to stdout.
571d99e1 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
9NOTE:
10The -w (windowed) option was removed from the master branch. It was too
11buggy in tiled window managers and required more code to be maintained.
12
13
14§ Files
15
16The files are:
17• ./README: This file.
18• ./Makefile: The makefile.
19• ./config.h: The hardcoded default configuration for XMenu.
20• ./config.mk: The setup for the makefile.
ddeb6e1e 21• ./demo.gif: A gif demonstrating how XMenu works.
571d99e1 22• ./xmenu.1: The manual file (man page) for XMenu.
23• ./xmenu.c: The source code of XMenu.
24• ./xmenu.sh: A sample script illustrating how to use XMenu.
a966c866 25• ./patches/ See the §Patches section
26
27
28§ Patches
29
30There are some patches that can be applied to XMenu in order to obtain
31novel functionalities. The patches are located at ./patches. There
32are the following patches:
33
34• ./patches/icons.diff: Add suport to image icons before menu entries.
35
36To apply a patch, use the following command:
37
38 patch -p1 < patches/patch.diff
a7732690 39
27443900 40
a7732690 41§ Installation
42
571d99e1 43First, edit ./config.mk to match your local setup.
44
45In order to build XMenu you need the Xlib and the Xft header files.
46The default configuration for XMenu is specified in the file config.h,
47you can edit it, but most configuration can be changed at runtime via
48X resources. Enter the following command to build XMenu. This command
49creates the binary file ./xmenu.
a7732690 50
571d99e1 51 make
a7732690 52
571d99e1 53By default, XMenu is installed into the /usr/local prefix. Enter the
54following command to install XMenu (if necessary as root). This command
55installs the binary file ./xmenu into the ${PREFIX}/bin/ directory, and
56the manual file ./xmenu.1 into ${MANPREFIX}/man1/ directory.
a7732690 57
571d99e1 58 make install
a7732690 59
a7732690 60
571d99e1 61§ Running XMenu
62
63XMenu receives as input a menu specification where each line is a menu
a7732690 64entry. Each line can be indented with tabs to represent nested menus.
65Each line is made out of a label and a command separated by any number
7fbd1c5e 66of tabs. Lines without labels are menu separators.
a7732690 67
4f898cc3 68See the script ./xmenu.sh for an example of how to use XMenu to draw a
69simple menu with submenus and separators. The file ./demo.gif shows how
70the menu generated by that script looks like.
571d99e1 71
72Read the manual for more information on running XMenu.
73
74
75§ License
08f16589 76
571d99e1 77This software is in public domain and is provided AS IS, with NO WARRANTY.