Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2002 00:26:34 +0200
From:      Norbert Augenstein <norbert@augenstein.net>
To:        Adam Weinberger <adam@vectors.cx>
Cc:        FreeBSD-Questions@FreeBSD.ORG
Subject:   Re: layers and layers of windows managers(OT)
Message-ID:  <20020902002634.6947b135.auge@seth.augenstein.net>
In-Reply-To: <20020901194614.GH56964@vectors.cx>
References:  <20020901191222.GF56964@vectors.cx> <20020901151838.U37627-100000@earl-grey.cloud9.net> <20020901194614.GH56964@vectors.cx>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 1 Sep 2002 12:46:14 -0700
Adam Weinberger <adam@vectors.cx> wrote:

> if you wish to keep using gnome and just change which window manager
> starts up, open the gnome control center (bin/gnomecc) and modify the
> "Window Manager" page of the "Desktop" category.
> 
> alternatively, edit ~/.gnome/default.wm and put the windowmanager in
> there.
> 
> [Default]
> WM=/usr/X11R6/bin/metacity
> 
> or whatever.
> 
> if you don't wish to run gnome at all, then just edit your .xinitrc
> file and change the exec line to something else. that file is a
> script. i'm attaching mine.
> 
> if you're running startx, all you need is an .xinitrc file. i
> typically just link .xinitrc and .xsession. if something is spawning
> multiple root images, just search for them recursively.
> 
> ~/$ for i in image1.jpg image2.jpg; grep -r $i \.*
> 
> -Adam
> 
> ======================begin .xinitrc
> xhost +&
> # not the best idea, but it's a laptop, and 6000 is blocked by ipfw
> # anyhow
> xmodmap /monkey/.xmodmaprc &
> 
> # invoke with WM= to change windowmanagers. WM=kde starts KDE, WM=bob
> # starts "bob" even though it isn't in the list below, and leaving out
> # the WM= term just starts the default. i am very close to sneezing on
> # this keyboard.
> 
> case $WM in
> 	kde)
> #KDE desktop system bloat thang
> 		exec startkde
> 		;;
> 	enlightenment)
> #enlightenment
> 		sleep 8 && NO_PROMPT=1 Eterm -C -g 100x20+0-0 -q -x --no-cursor
> 		\
> 			--cmod-red=256 --cmod-green=256 --cmod-blue=256 &
> 		exec enlightenment
> 		;;
> 	'sawfish')
> #sawfish
> 		sleep 12 && NO_PROMPT=1 Eterm -C -g 100x20+0+990 -q -x
> 		--no-cursor \
> 			--cmod-red='256 256 256' --cmod-blue="256 256 256" \
> 			--cmod-green="256 256 256" --font=snap -f white &
> #sleep 120 && xpenguins -t Lemmings -t "The Simpsons" \
> #-t "Sonic the Hedgehog" -s &
> 		sleep 120 && xpenguins -t Lemmings -t "The Simpsons" \
> 		-t "Sonic the Hedgehog" &
> 		mouseclock -bd 2&
> 		exec gnome-session
> 		;;
> 	'fluxbox')
> #fluxbox
> 	appletproxy
> 	/usr/local/share/apps/kicker/applets/knewsticker.desktop \
> 		--geometry 1600x27+0+1148&
> 	xpenguins -t "Sonic the Hedgehog" &
> 	bbpager -w &
> 	wmfmixer &
> 	exec fluxbox
> 	;;
> 	'windowmaker')
> #windowmaker
> 	xbindkeys &
> #	LD_PRELOAD=/usr/X11R6/lib/libgdkxft.so exec wmaker
> 	exec wmaker
> 	;;
> 	'')
> #default
> #fvwm
> 	Esetroot -s /home/images/root/TreasureNap.jpg &
> 	exec fvwm
> 	;;
> 	*)
> #else
> 		exec $WM
> 		;;
> esac
> 
> ============================end .xinitrc
> 
Hi Adam,

i found a .xinitrc file on linux page and changed it a litte so that it
works for me. i had to change one line in  /usr/X11R6/bin/startx too.

you can start wm's like "startx kde" or "x kde" if you use x as alias.
in startx change line 98 that it reads like line 96:
          client="$defaultclientargs"

make sure that defaultwm points to the executable

let me know what you think of it

auge


[auge@seth auge]$ cat .xinitrc
#!/bin/bash
# .xinitrc
# choose a window manager

defaultwm=icewm
#set the window manager to $1 if it was supplied
windowmgr=${1:-$defaultwm}
#start the respective window managers
case ${windowmgr} in
kde|startkde)
WINDOWMANAGER=startkde
;;
ice|icewm)
WINDOWMANAGER=icewm
;;
pwm)
WINDOWMANAGER=pwm
;;
*)
WINDOWMANAGER=$defaultwm # default for unknown wm's
;;
esac

# finally start the window manager
exec $WINDOWMANAGER
[auge@seth auge]$ 




> "Oh good, my dog found the chainsaw."
>         -Lilo, "Lilo & Stitch"
> Adam Weinberger
> adam@vectors.cx
> http://vectors.cx
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

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?20020902002634.6947b135.auge>