ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] neat trick


From: Martin Samuelsson
Subject: Re: [RP] neat trick
Date: Tue Apr 29 11:01:04 2003
User-agent: Mutt/1.3.28i

On Fri, Apr 25, 2003 at 07:08:16PM +1000, twb wrote:
> Problem: Occasionally RP dies or  goes funny, right.  Your only option
> is to kill X and xinit again.

I still keep the following around in my .xsession from the early days
of rp. It keeps restarting until rp exits with a clean returncode. That
is until you type ":quit".
--
/Martin

if [ -x /usr/bin/ratpoison ]
then
        WM="/usr/bin/ratpoison"
else if [ -x $HOME/bin/`uname -s`-`uname -m`/ratpoison ]
then
        WM="$HOME/bin/`uname -s`-`uname -m`/ratpoison"
else if [ -x /usr/local/bin/ratpoison ]
then
        WM="/usr/local/bin/ratpoison"
else if [ -x /usr/bin/X11/ratpoison ]
then
        WM="/usr/bin/X11/ratpoison"
else
        WM="twm"
fi
fi
fi
fi

until $WM
do
        echo "window manager died"
done



reply via email to

[Prev in Thread] Current Thread [Next in Thread]