View previous topic :: View next topic |
Author |
Message |
drwebpat n00b
Joined: 18 Apr 2002 Posts: 49
|
Posted: Wed Apr 24, 2002 8:14 pm Post subject: multiple WMs |
|
|
Is there something so that when I "startx" I can choose then which WM I would like to use that time? Or is the only way to edit the XSESSION variable in rc.conf to whichever I want to use that time?
Thanks,Pat |
|
Back to top |
|
|
Jeevz Bodhisattva
Joined: 15 Apr 2002 Posts: 195 Location: Boston, MA
|
Posted: Wed Apr 24, 2002 8:54 pm Post subject: |
|
|
You can add the WM to your .xinitrc file.
For example (end with this line):
Will load Fluxbox as the WM.
KDM also has an option that lets you choose upon logging in. |
|
Back to top |
|
|
drwebpat n00b
Joined: 18 Apr 2002 Posts: 49
|
Posted: Wed Apr 24, 2002 9:12 pm Post subject: |
|
|
I don't mind logging in and typing startx. My question is that for when I do type startx is there anyway I can choose which WM I want to use without editting a file?
Pat |
|
Back to top |
|
|
dArkMaGE Apprentice
Joined: 20 Apr 2002 Posts: 152
|
Posted: Wed Apr 24, 2002 10:44 pm Post subject: |
|
|
the best thing i could think of is typing
export XSESSION=(wmaker);startx
of course substituting wmaker for your window manager of choice...
of course, if you are really familiar with bash scripting you can put an interactive script into your .xinitrc file too, but that might be a little overboard |
|
Back to top |
|
|
drwebpat n00b
Joined: 18 Apr 2002 Posts: 49
|
Posted: Thu Apr 25, 2002 1:26 am Post subject: |
|
|
Yeah that sounds like a plan....maybe setup an alias
Thanks,
Pat |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sat May 11, 2002 9:36 pm Post subject: |
|
|
I was going to post this very question. I've installed several managers and haven't completely decided which one to settle on. Editing .xinitrc is getting old .
I'm not the best script maker, but here's version one of how I'm solving this problem:
Code: |
#!/bin/bash
# Very simple script to choose a WM when starting X
# Usage: scriptname windowmanager
# if no options are given, x will not start and your .xinitrc file will become empty.
echo "exec $1" > ~/.xinitrc
startx |
*** BE SURE TO SAVE YOUR EXISTING .xinitrc FILE BEFORE USING THIS SCRIPT |
|
Back to top |
|
|
friedmud Apprentice
Joined: 18 Apr 2002 Posts: 258 Location: Austin, TX USA
|
Posted: Sun May 12, 2002 6:26 pm Post subject: Or... |
|
|
Or you you could do this (from the desktop setup guide):
Edit your /etc/rc.conf where:
Code: |
# What display manager do you use ? [ xdm | gdm | kdm ]
DISPLAYMANAGER=kdm
|
Just choose the one you want (I suggest kdm because it is easy to configure from within KDE3).
Now we just need to make sure that the xdm start-up script is read when booting.
Code: |
rc-update add xdm default
|
And yes it really does mean xdm! Really!
After you have done that you can reboot and it will bring up KDM (or whatever) and you should be able to choose what WM you want and login at the same time.
Derek |
|
Back to top |
|
|
|