Re: [dwm] dwm/dmenu how to use?

From: Antoni Grzymala <antoni_AT_chopin.edu.pl>
Date: Sun, 24 Dec 2006 20:25:39 +0100

Tako rzecze Tener Hades (w e-mailu datowanym 2006-12-24, 12:10):

> On 2006-12-21, Michael Muster <a_AT_mmuster.de> wrote:
> > I finally managed using dmenu with your help;
> > i edited config.h and added
> > { MODKEY, XK_p, spawn, { .cmd = "exec dmenu.sh" } }, \
> > then put in dmenu.sh:
> >
> > `echo -e
> > "amarok\nkaffeine\ndvd\nvcd\ncdrein\ncdraus\nfirefox\nfirefox-bin\ngftp\
> > nbitlbee\nemail\nkalender\nmusik
> > " | dmenu` &
>
> Then you may like my setup as well. My spawn() cmd is
>
> "exec `dmenu < ~/.dmenu.lst`"
>
> where ~/.dmenu.lst is maintained by eg.
>
> echo firefox >> ~/.dmenu.lst
>
> It's sorted and backed up daily via cron.

I do it this way:

  { MODKEY, XK_p, spawn, { .cmd = "exec dwm-update-proglist.sh
  --launch" } }, \

Where my dwm-update-proglist.sh is as attached. It runs a program with
the --launch option and only updates the program list when run without
options.

If there's no program list file it will generate one.

I usually run this program asynchronously once when logging into an X
session (and later manually if necessary).

Cheers,

[a]

-- 
. Antoni Grzymala - antoni (at) chopin.edu.pl -------------------.
| OpenPGP KeyID EB315583 available now from a keyserver near you |
| Fingerprint A819 6D2E D5EB D9E0 D2D9  7AF6 2FAF 4A11 EB31 5583 |
`----------------------------------------------------------------'

Received on Sun Dec 24 2006 - 20:26:05 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:34:07 UTC