Re: [dwm] X Display Manager

From: Sander van Dijk <a.h.vandijk_AT_gmail.com>
Date: Tue, 31 Oct 2006 09:59:45 +0100

A simple "exec startx" should do the job as well I believe, since that
replaces your login shell's process...

I've got this in my .profile:

read -t 3 -p "start X11? [y]/n: "
if test "$?" != 0 -o "$REPLY" = y -o "$REPLY" = Y -o "$REPLY" = ""
then
    exec startx 1>~/.xout 2>~/.xerr
fi

It contains some bashianisms in the read statement though, so I guess
it has to be adapted a bit for other shells.

Greets, Sander.

On 10/30/06, Christian Garbs <mitch_AT_cgarbs.de> wrote:
> On Mon, Oct 30, 2006 at 10:23:55PM +0100, Marek Bernat wrote:
>
> > Oh yeah, it's oh so hard to write simple alias around startx that
> > would log you off from console, isn't it?
>
> Now _that_ is a challenge, but luckily I have this one-liner ready :-)
>
> $ startx & logout
>
> Regards,
> Christian
> --
> ....Christian.Garbs.....................................http://www.cgarbs.de
>
> I survived Borg assimilation and all I got is this misspeled signatur.
>
>
>
Received on Tue Oct 31 2006 - 09:59:47 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:32:16 UTC