Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jan 2003 01:40:11 -0500
From:      Scott Robbins <scottro@nyc.rr.com>
To:        questions@FreeBSD.ORG
Subject:   Re: Using multiple window managers
Message-ID:  <20030101064011.GA2840@scottro11.homeunix.net>
In-Reply-To: <20030101062040.GA51703@peitho.fxp.org>
References:  <20030101062040.GA51703@peitho.fxp.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--k+w/mQv8wyuph6w0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.
>=20
> 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=3D"Your choice =3D> " ; export PS3
select choice in Gnome Kde Fluxbox
do
case $choice in
Fluxbox)=20
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"=20
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



--=20

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.
> --=20
> /----------------------------------------------------------------\
> | Bob Bomar 	bulldog@fxp.org 	http://www.bomar.us/~bob |
> |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D|
> | FreeBSD: The Power to Serve.		http://www.freeBSD.org   |
> \----------------------------------------------------------------/



--=20

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.

--k+w/mQv8wyuph6w0
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+Eo1L+lTVdes0Z9YRAqRPAJ0XERWrIizG1UOahRu01MRNpFXRvACff5rQ
EgrTdVSrBsEbIOAAgp5JcA8=
=yjXp
-----END PGP SIGNATURE-----

--k+w/mQv8wyuph6w0--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030101064011.GA2840>