-rw-r--r-- 5800 CHANGELOG
-rw-r--r-- 1667 LICENSE
-rw-r--r-- 1086 Makefile
-rw-r--r-- 3145 README.md
-rw-r--r-- 2235 config.h
drwxr-xr-x - icons
-rw-r--r-- 7359 xmenu.1
-rw-r--r-- 51543 xmenu.c
-rwxr-xr-x 228 xmenu.sh

XMenu

XMenu is a menu utility for X. XMenu receives a menu specification in stdin, shows a menu for the user to select one of the options, and outputs the option selected to stdout. XMenu can be controlled both via mouse and via keyboard.

In order to generate a menu of applications based on .desktop entries, as specified by XDG, checkout xdg-xmenu by OliverLew.

Check out my other project, xclickroot for an application that can spawn xmenu by right clicking on the root window (i.e. on the desktop).

Features

XMenu comes with the following features:

Files

The files are:

Installation

First, edit ./config.mk to match your local setup.

In order to build XMenu you need the Imlib2, Xlib, Xinerama and Xft header files. The default configuration for XMenu is specified in the file config.h, you can edit it, but most configuration can be changed at runtime via X resources. Enter the following command to build XMenu. This command creates the binary file ./xmenu.

make

By default, XMenu is installed into the /usr/local prefix. Enter the following command to install XMenu (if necessary as root). This command installs the binary file ./xmenu into the ${PREFIX}/bin/ directory, and the manual file ./xmenu.1 into ${MANPREFIX}/man1/ directory.

make install

Running XMenu

XMenu receives as input a menu specification where each line is a menu entry. Each line can be indented with tabs to represent nested menus. Each line is made out of a label and a command separated by any number of tabs. Lines without labels are menu separators.

See the script ./xmenu.sh for an example of how to use XMenu to draw a simple menu with submenus and separators. The file ./demo.gif shows how the menu generated by that script looks like.

Read the manual for more information on running XMenu.

Acknowledgements