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

From: Robert Ransom <rransom.8774_AT_gmail.com>
Date: Wed, 27 Apr 2011 13:20:12 -0700

On Wed, 27 Apr 2011 22:15:11 +0200
Kurt Van Dijck <kurt.van.dijck_AT_eia.be> wrote:

> On Wed, Apr 27, 2011 at 05:51:27PM +0200, Thomas Dahms wrote:
> > Hi Andreas,
> >
> > >while xsetroot -name "$(date +"%a, %b %d %Y | %H:%M")"
> > >do
> > > sleep 20
> > >done &
> > >exec dwm
> >
> > This is even nicer as the original instance of .xsession is not kept
> > running.
>
> I don't understand how the while loop terminates then when dwm terminates.

xsetroot fails (and returns a non-zero exit code) when the X server
terminates or becomes inaccessible.

Robert Ransom

Received on Wed Apr 27 2011 - 22:20:12 CEST

This archive was generated by hypermail 2.2.0 : Wed Apr 27 2011 - 22:24:05 CEST