On Wed, Jan 01, 2003 at 01:20:40AM -0500, Bob Bomar wrote:
> I want to set up a demo box that shows diffrent Window Managers.
> 
> What is a good way to swith between window managers?

A simple shell script would do it--it's 1:30 am here, but quick hack


#!/usr/local//bin/bash
#script to select window manager
echo ""
echo "Please select your Xsession"
echo ""
PS3="Your choice => " ; export PS3
select choice in Gnome Kde Fluxbox
do
case $choice in
Fluxbox) 
echo "exec fluxbox" >> .xinitrc
startx
break
;;
Kde)
echo "startkde" > .xinitrc
startx
break;;
Gnome)
echo "exec gnome-session" > .xinitrc
startx
break;;
*)
echo ""
echo "Please choose 1, 2 or 3" 
echo "(or hit Ctrl+C to exit)"
echo ""
esac
done

Even as I look at this, it looks pretty lame, but should get you
started.

HTH and happy new year all



-- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 D575 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Xander: Hmm, and we thought just because we didn't have any
money or any
place to go, this'd be a lackluster evening.
Willow: I know! We could go to the Bronze, and sneak in our own tea
bags and
ask for hot water.
Xander: Hop off the outlaw train, Will, before you land us all in
jail.
> -- 
> /----------------------------------------------------------------\
> | Bob Bomar   [EMAIL PROTECTED]         http://www.bomar.us/~bob |
> |================================================================|
> | FreeBSD: The Power to Serve.                http://www.freeBSD.org   |
> \----------------------------------------------------------------/



-- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 D575 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Xander: Hmm, and we thought just because we didn't have any
money or any
place to go, this'd be a lackluster evening.
Willow: I know! We could go to the Bronze, and sneak in our own tea
bags and
ask for hot water.
Xander: Hop off the outlaw train, Will, before you land us all in
jail.

Attachment: msg13889/pgp00000.pgp
Description: PGP signature

Reply via email to