From owner-freebsd-questions Fri Jun 23 11:35:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta01-svc.server.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by hub.freebsd.org (Postfix) with ESMTP id F106B37B64B for ; Fri, 23 Jun 2000 11:35:21 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from parish.my.domain ([62.253.86.88]) by mta01-svc.server.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000623183519.MREV381.mta01-svc.server.ntlworld.com@parish.my.domain>; Fri, 23 Jun 2000 19:35:19 +0100 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id TAA00930; Fri, 23 Jun 2000 19:35:04 +0100 (BST) (envelope-from mark) Date: Fri, 23 Jun 2000 19:35:04 +0100 From: Mark Ovens To: Francisco Reyes Cc: Todd Meister , FreeBSD questions Subject: Re: Using 2+ window managers Message-ID: <20000623193504.A232@parish> References: <200006230729.AAA11399@drtboi.rdsl.lmi.net> <200006231122.HAA35237@sanson.reyes.somos.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200006231122.HAA35237@sanson.reyes.somos.net>; from fran@reyes.somos.net on Fri, Jun 23, 2000 at 07:26:33AM -0400 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jun 23, 2000 at 07:26:33AM -0400, Francisco Reyes wrote: > On Fri, 23 Jun 2000 00:29:51 -0700, Todd Meister wrote: > > > > > Is there an easy way to switch window managers? > > I just looked at the startx script and a "startxfce" script that > got created after installing xfce. > The easiest way seems to be to create separate xinit files and > to create a "startXXX" where XXX is some name of choice. > If you are wanting to switch between them at start-up, as opposed to switching whilst running (see below) put multiple entries in a "case" in ~/.xinitrc and run startx with an option. This is mine as an example, if I want to start KDE I could use ``startx -k'', fvwm2 is the default. The default startx will pass the ``-k'': % cat /usr/mark/.xinitrc if [ -f $HOME/.Xdefaults ]; then xrdb $HOME/.Xdefaults # Load Users X11 resource database else xrdb $OPENWINHOME/lib/Xdefaults # Load Default X11 resource database fi xhost + & xmodmap $HOME/.xmodmaprc case "$1" in -k) exec startkde ;; -o) sleep 15 & pid=$! # OpenLook Window Manager olvwm -syncpid $pid & wait $pid # Pause until olwm inits if [ -x $HOME/.openwin-init ]; then $HOME/.openwin-init # Custom OpenWindows tools else $OPENWINHOME/lib/openwin-init # Default OW tools fi wait ;; *) exec fvwm2 > /dev/console 2>&1 ;; esac If you wish to swap window manglers whilst running it depends on whether they have a restart option; fvwm2 does so having a menu option such as: *System(Title Restart, Action Restart fvwm2) will do the trick. The above example is handy for restarting fvwm2 itself to see the effect of changing the config file without having to shutdown all the running apps. HTH > >all files in that directory ending in wm, you should see a good chunk of > >them. > > There were only two. :-( > twm and xfwm (from xfce) > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- If I buy a copy of WinDelete, and it doesn't delete Windows, am I entitled to my money back? ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message