Re: [dwm] A question about drawbar()

From: markus schnalke <meillo_AT_marmaro.de>
Date: Fri, 11 Jul 2008 15:46:15 +0200

James Turner <james_AT_bsdgroup.org> wrote:
> On Fri, Jul 11, 2008 at 08:42:24AM +0200, markus schnalke wrote:
> >
> > but then you probably have to wait one minute when you want to
> > shutdown (Alt-q) dwm.
> >
> > (At least it was like this in earlier releases - I dont know about
> > the current ones.)
>
> That why you can do something like add:
>
> while true
> do
> echo `date "+%m/%d %H%M"` > $HOME/.dwm/dwm_status
> sleep 60
> done
>
> to a dwm_run script that writes to a fifo, then in .xinitrc pipe it into
> dwm. No more waiting for the sleep loop to finish to exit dwm.
>
> [ -p $HOME/.dwm/dwm_status ] || mkfifo $HOME/.dwm/dwm_status
> sh $HOME/.dwm/dwm_run &
> exec dwm < $HOME/.dwm/dwm_status

ahh, nice to learn :-)

thx

meillo

Received on Fri Jul 11 2008 - 15:47:41 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:54:07 UTC