Re: [dev] [dwm] terminating the status loop

From: Petr Sabata <psabata_AT_redhat.com>
Date: Wed, 27 Apr 2011 17:40:00 +0200

On Wed, Apr 27, 2011 at 05:24:55PM +0200, amann_AT_physik.tu-berlin.de wrote:
> > On Wed, 27 Apr 2011 13:55:08 +0200, Kurt Van Dijck <kurt.van.dijck_AT_eia.be>
> > wrote:
> >
> >> why not just:
> >> dwm
> >> kill $statuspid
> >>
> >> I see no use in backgrounding dwm, and then waiting for it.
> >> What did I miss?
> >
> > Nothing; backgrounding dwm was left from trying a few other ways to do it.
> > Thank you.
> > Then it can be simplified further:
> >
> > while true; do
> > xsetroot -name ...
> > sleep 1
> > done &
> > dwm
> > kill $!
> >
>
> the following works for me:
>
> while xsetroot -name "$(date +"%a, %b %d %Y | %H:%M")"
> do
> sleep 20
> done &
> exec dwm
>
> Andreas

That's quite nice.
I usually run a script instead of "hardcoding" the title in there...

> > I wonder whether the README should be updated accordingly. But it is there
> > for years and nobody seemed to notice before. I attach the trivial patch,
> > just in case.
> >
> > --
> > Thomas Dahms
>
>
>

-- 
Petr 'contyk' Sabata, Red Hat

Received on Wed Apr 27 2011 - 17:40:00 CEST

This archive was generated by hypermail 2.2.0 : Wed Apr 27 2011 - 17:48:02 CEST