1 be5b89f6 2018-05-18 omar.polo # MyMenu
3 be5b89f6 2018-05-18 omar.polo > A drop-in replacement for dmenu, 'cause I was bored
5 be5b89f6 2018-05-18 omar.polo ![MyMenu works!](screen.png)
9 be5b89f6 2018-05-18 omar.polo ## What?
11 be5b89f6 2018-05-18 omar.polo This is a drop-in replacement for `dmenu(1)`.
13 be5b89f6 2018-05-18 omar.polo ## Why?
15 be5b89f6 2018-05-18 omar.polo This was the perfect excuse to learn how to make window with Xlib.
17 be5b89f6 2018-05-18 omar.polo ## How?
19 b3f35c85 2018-05-18 omar.polo Check out the [manpage](mymenu.1) for further documentation. Check out
20 b3f35c85 2018-05-18 omar.polo also the [template](Xexample) for the resources.
24 be5b89f6 2018-05-18 omar.polo ## Dependencies
27 be5b89f6 2018-05-18 omar.polo - Xinerama (optional)
28 be5b89f6 2018-05-18 omar.polo For multi-monitor support
29 be5b89f6 2018-05-18 omar.polo - pkg-config (optional)
30 be5b89f6 2018-05-18 omar.polo used in the makefile to generate `LIBS` and `CFLAGS` correctly
32 be5b89f6 2018-05-18 omar.polo ## Build
34 be5b89f6 2018-05-18 omar.polo As simple as `make`. If you want to disable Xinerama support just
35 be5b89f6 2018-05-18 omar.polo delete `-DUSE_XINERAMA` from the `CFLAGS` and `xinerama` from the
36 be5b89f6 2018-05-18 omar.polo `pkg-config` call from the Makefile.
40 be5b89f6 2018-05-18 omar.polo ## TODO
42 be5b89f6 2018-05-18 omar.polo - Command line flags
44 be5b89f6 2018-05-18 omar.polo At the moment the X Resource Database is the only way to interact
45 be5b89f6 2018-05-18 omar.polo with the graphic appearance of MyMenu.
47 be5b89f6 2018-05-18 omar.polo - Optional TrueType support
49 be5b89f6 2018-05-18 omar.polo - Opacity support
51 be5b89f6 2018-05-18 omar.polo - Alternate layout
53 be5b89f6 2018-05-18 omar.polo An alternate layout (similar to rofi) would be nice too
55 b836b1ec 2018-05-18 omar.polo ## Scripts
57 b836b1ec 2018-05-18 omar.polo I'm using this script to launch MyMenu
59 b836b1ec 2018-05-18 omar.polo ``` shell
60 b836b1ec 2018-05-18 omar.polo #!/bin/sh
62 b836b1ec 2018-05-18 omar.polo cat <<EOF | /bin/sh -c "$(mymenu "$@")"
64 b836b1ec 2018-05-18 omar.polo sct 4500
66 b836b1ec 2018-05-18 omar.polo connect ethernet
67 b836b1ec 2018-05-18 omar.polo connect home
68 b836b1ec 2018-05-18 omar.polo connect phone
74 b836b1ec 2018-05-18 omar.polo Of course you can as well use the `dmenu_path` and `dmenu_run` scripts
75 b836b1ec 2018-05-18 omar.polo that (usually) comes with `dmenu`.