Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2001 00:44:12 -0400
From:      JT <luser@ahab.com>
To:        freebsd-multimedia@FreeBSD.ORG
Subject:   Re: Mounting CDROM's, Setting Voodoo3 Depth Settings, and Switching Window Managers.
Message-ID:  <20010802004412.F424@zed.unbeat.com>
In-Reply-To: <01080218293600.24863@BrokenMachine.openxtreme.net>; from gecko@tcworks.net on Thu, Aug 02, 2001 at 06:29:36PM -0500
References:  <01080218293600.24863@BrokenMachine.openxtreme.net>

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

On Thu, Aug 02, 2001 at 06:29:36PM -0500, John wrote:
> 
> Third, I want a program that will let me choose which Window Manager I want 
> to use upon the start of the X server after login. Or maybe even a graphical 
> login will work, like the graphical logins on Mandrake and Red Hat Linux. 
> Does anyone know if there is such a program ported to FreeBSD?
> 

This is easiest with shell scripts.  Write one that does the following and use it instead of startx.  Say, "xme".

	MY_WM=$1; export MY_WM
	exec startx

Starting an ssh agent here can be very convenient, too...  Then, in .xinitrc:

	case $MY_WM in
	k*)
		# KDE
		exec startkde
		;;
	g*)
		# Gnome
		exec gnome-session
		;;
	w*)
		# Window maker
		exec wmaker
		;;
	*)
		exec my-favorite-wm
		;;
	esac

So if you want kde, do:
	xme k

Dead easy.  Better than any graphical manager, cause it's so easy.  And
portable.


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




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