Re: [dwm] dmenu

From: Sander van Dijk <>
Date: Sun, 10 Sep 2006 09:03:10 +0200

On 9/10/06, djgoku <> wrote:
> For the life of me I can't seem to figure out how to use dmenu. I
> created a key (MODKEY + Shift + b) to dmenu <dmenu. But the part I
> don't get is how dmenu calls the program from my selection? Looking at
> config.default.h in dmenu doesn't seem to give any ideas. I am using a
> default config.default.h for dmenu.
> demu has:
> firefox
> gaim
> xmms

dmenu doesn't call anything. It accepts a list of newline separated
items from stdin, and prints the selection to stdout. Not executing
anything makes it more generic: it means that you can you can use it
in scripts to obtain abitrary user input with it, and do with it
whatever you want. It also means that if you want to execute that
output, you'll have to do it yourself. Try something like this from a
`echo -e "firefox\ngaim\nxmms" | dmenu` &
You'll want to do something similar in your config.h.
(the trick is in the use of the "`", if you don't know what they do,
look it up in the manpage of your shell).

Greetings, Sander.
Received on Sun Sep 10 2006 - 09:03:12 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:31:12 UTC