From owner-freebsd-questions Tue Dec 31 22:33:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DB0F37B401 for ; Tue, 31 Dec 2002 22:33:27 -0800 (PST) Received: from nycsmtp2out.rdc-nyc.rr.com (nycsmtp2out.rdc-nyc.rr.com [24.29.99.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B67F43EA9 for ; Tue, 31 Dec 2002 22:33:26 -0800 (PST) (envelope-from scottro@nyc.rr.com) Received: from nyc.rr.com (66-108-172-188.nyc.rr.com [66.108.172.188]) by nycsmtp2out.rdc-nyc.rr.com (8.12.1/Road Runner SMTP Server 1.0) with SMTP id h016SgUK008839 for ; Wed, 1 Jan 2003 01:28:42 -0500 (EST) Date: Wed, 1 Jan 2003 01:40:11 -0500 From: Scott Robbins To: questions@FreeBSD.ORG Subject: Re: Using multiple window managers Message-ID: <20030101064011.GA2840@scottro11.homeunix.net> Mail-Followup-To: questions@FreeBSD.ORG References: <20030101062040.GA51703@peitho.fxp.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline In-Reply-To: <20030101062040.GA51703@peitho.fxp.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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