3 > A menu for Xorg, 'cause I was bored
5 ![MyMenu works!](screen.png)
7 ![MyMenu alternate layout](screen-alt.png)
13 This is a simple menu for Xorg, like `dmenu(1)`.
17 This was the perfect excuse to learn how to use Xlib.
21 Check out the [manpage](mymenu.1.md) for further documentation. Check
22 out also the [template](Xexample) for the resources.
28 - two layout: `horizontal` (a là dmenu) and `vertical` (a là rofi);
29 - highly customizable (width, height, position on the screen, colors, borders, ...);
30 - transparency support
31 - support for both Xft and bitmap font
36 - Xinerama for multi-monitor support
37 - Xft for TrueType font support
38 - pkg-config *(optional)* to aid the autoconfiguration
39 - mandoc *(optional)* to generate the
40 [markdown version of the manpage](mymenu.1.md)
51 - Does not run / Hangs
53 At the startup mymenu will read `stdin` for a list of item, only
54 then it'll display a window. Are you sure that you're passing
55 something on standard input?
57 - Will feature $X be added?
59 No. Or maybe yes. In fact, it depends. Open an issue and let's
60 discuss. If it's something that's trivial to achieve in combo with
61 other tool maybe is not the case to add it here.
63 - Is feature $Y present? What $Z do? How to achieve $W?
65 Everything is documented in the [man page](mymenu.1.md). To read
66 it, simply execute `man -l mymenu.1` or `mandoc mymenu.1 | less`
67 (depending on your system the `-l` option may not be present).
73 I'm using this script to launch MyMenu with custom item
78 cat <<EOF | /bin/sh -c "$(mymenu "$@")"
90 You can generate a list of executables from `$PATH` like this:
95 path=`echo $PATH | sed 's/:/ /g'`
100 [ -x "$f" ] && echo "${f##*/}"
103 } | sort -fu | /bin/sh -c "$(mymenu "$@")"
106 You can, for example, select a song to play from the current queue of [amused][amused]
109 if song=$(amused show | mymenu -p "Song: " -A); then
114 The same, but with mpd:
117 fmt="%position% %artist% - %title%"
118 if song=$(mpc playlist -f "$fmt" | mymenu -p "Song: " -A -d " "); then
119 mpc play $(echo $song | sed "s/ .*$//")
123 Of course you can as well use the `dmenu_path` and `dmenu_run` scripts
124 that (usually) comes with `dmenu`.
126 [amused]: https://projects.omarpolo.com/amused.html