On Wed, 27 Apr 2011 22:15:11 +0200
Kurt Van Dijck <kurt.van.di...@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

Attachment: signature.asc
Description: PGP signature

Reply via email to