| 1 | XMenu |
| 2 | |
| 3 | XMenu is a menu utility for X. |
| 4 | XMenu receives a menu specification in stdin, shows a menu for the user |
| 5 | to select one of the options, and outputs the option selected to stdout. |
| 6 | XMenu can be controlled both via mouse and via keyboard. The menu is a |
| 7 | pop-up menu (that is, after selecting an option, the menu disappears). |
| 8 | |
| 9 | NOTE: |
| 10 | The -w (windowed) option was removed from the master branch. It was too |
| 11 | buggy in tiled window managers and required more code to be maintained. |
| 12 | |
| 13 | |
| 14 | § Files |
| 15 | |
| 16 | The 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. |
| 21 | • ./demo.gif: A gif demonstrating how XMenu works. |
| 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. |
| 25 | |
| 26 | |
| 27 | § Branches |
| 28 | |
| 29 | There are other branches in this git repository that adds novel |
| 30 | functionalities to XMenu. |
| 31 | |
| 32 | • icons: Add suport to image icons before menu entries. |
| 33 | |
| 34 | |
| 35 | § Installation |
| 36 | |
| 37 | First, edit ./config.mk to match your local setup. |
| 38 | |
| 39 | In order to build XMenu you need the Xlib and the Xft header files. |
| 40 | The default configuration for XMenu is specified in the file config.h, |
| 41 | you can edit it, but most configuration can be changed at runtime via |
| 42 | X resources. Enter the following command to build XMenu. This command |
| 43 | creates the binary file ./xmenu. |
| 44 | |
| 45 | make |
| 46 | |
| 47 | By default, XMenu is installed into the /usr/local prefix. Enter the |
| 48 | following command to install XMenu (if necessary as root). This command |
| 49 | installs the binary file ./xmenu into the ${PREFIX}/bin/ directory, and |
| 50 | the manual file ./xmenu.1 into ${MANPREFIX}/man1/ directory. |
| 51 | |
| 52 | make install |
| 53 | |
| 54 | |
| 55 | § Running XMenu |
| 56 | |
| 57 | XMenu receives as input a menu specification where each line is a menu |
| 58 | entry. Each line can be indented with tabs to represent nested menus. |
| 59 | Each line is made out of a label and a command separated by any number |
| 60 | of tabs. Lines without labels are menu separators. |
| 61 | |
| 62 | See the script ./xmenu.sh for an example of how to use XMenu to draw a |
| 63 | simple menu with submenus and separators. The file ./demo.gif shows how |
| 64 | the menu generated by that script looks like. |
| 65 | |
| 66 | Read the manual for more information on running XMenu. |
| 67 | |
| 68 | |
| 69 | § License |
| 70 | |
| 71 | This software is in public domain and is provided AS IS, with NO WARRANTY. |