wm-agnostic, X11 menu
Go to file
phillbush d8a7caf2e3 improved algorithm for mapping/unmapping
In previous versions, all the previous current visible menus are
unmapped and the new currently visible menus are mapped when the
current visible menu changed. Now, using an algorithm that finds
the lowest common ancestor between current and current_new menus,
only the necessary menus are remapped on the display.
2020-05-16 14:43:07 -03:00
config.def.h improved algorithm that draw menus 2020-05-16 02:14:29 -03:00
config.mk Initial commit 2020-05-15 19:02:23 -03:00
LICENSE NOW IN PUBLIC DOMAIN! 2020-05-16 01:28:57 -03:00
Makefile Initial commit 2020-05-15 19:02:23 -03:00
README Added separators 2020-05-15 22:51:26 -03:00
xmenu.c improved algorithm for mapping/unmapping 2020-05-16 14:43:07 -03:00
xmenu.sh xmenu now works on tile window managers 2020-05-15 23:10:16 -03:00

                                 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.

§ Installation

In order to build xmenu you need the Xlib header files.

Edit config.mk to match your local setub (dwm is installed into the
/usr/local prefix by default).  Then enter the following command to
build and install dwm (if necessary as root).

┌─────────────────────────────────────────────────────────────────────┐
│ make clean 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 xmenu can be used to
draw a simple menu with submenus and separators.