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

> On 2006-12-21, Michael Muster <[EMAIL PROTECTED]> 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 |
`----------------------------------------------------------------'

Attachment: dwm-update-proglist.sh
Description: Bourne shell script

Attachment: pgpqHTzftqVGj.pgp
Description: PGP signature

Reply via email to