Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
multiple WMs
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
drwebpat
n00b
n00b


Joined: 18 Apr 2002
Posts: 49

PostPosted: Wed Apr 24, 2002 8:14 pm    Post subject: multiple WMs Reply with quote

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
View user's profile Send private message
Jeevz
Bodhisattva
Bodhisattva


Joined: 15 Apr 2002
Posts: 195
Location: Boston, MA

PostPosted: Wed Apr 24, 2002 8:54 pm    Post subject: Reply with quote

You can add the WM to your .xinitrc file.

For example (end with this line):
Code:
exec fluxbox

Will load Fluxbox as the WM.

KDM also has an option that lets you choose upon logging in.
Back to top
View user's profile Send private message
drwebpat
n00b
n00b


Joined: 18 Apr 2002
Posts: 49

PostPosted: Wed Apr 24, 2002 9:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
dArkMaGE
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 152

PostPosted: Wed Apr 24, 2002 10:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
drwebpat
n00b
n00b


Joined: 18 Apr 2002
Posts: 49

PostPosted: Thu Apr 25, 2002 1:26 am    Post subject: Reply with quote

Yeah that sounds like a plan....maybe setup an alias :)

Thanks,
Pat
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat May 11, 2002 9:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
friedmud
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 258
Location: Austin, TX USA

PostPosted: Sun May 12, 2002 6:26 pm    Post subject: Or... Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum