You could actually pass an argument to startx. My .xinitrc looks like this:

if [[ $2 == "kde" ]]; then
  exec startkde
elif [[ $2 == "awesome" ]]; then
  setxkbmap de
  exec ck-launch-session dbus-launch --sh-syntax --exit-with-session 
awesome
else
  exec startkde
fi

I've also created aliase for kde & awesome (.bashrc):

alias kde="startx kde"
alias awesome="startx awesome"

Means whenever i want to start kde or awesome i only have to execute 
"kde" or "awesome". By default (startx) it would start kde.

LG

 
On Friday 23 August 2013 13:39:45 Randy Westlund wrote:
> I'm looking for a better way to manage multiple WMs.
> 
> I launch X with startx.  I also use multiple window managers.  I'm primarily
> on xmonad because I love tiling WMs, but I also keep xfce around for 
whever
> I developing a GUI or letting my fiancee use my machine.  My procedure 
for
> starting multiple managers is this:
> 
> - log in
> - startx
> - login on tty2
> - edit .xinitrc (shown below)
> - startx -- :1
> 
> .xinitrc goes from:
> > exec xmonad
> > #exec startxfce4
> 
> to:
> > #exec xmonad
> > exec startxfce4
> 
> Then I can switch between tty7 and tty8 at will.  Usually I don't start xfce
> at all, but for the times when I do, I'd be nice to do this without editing
> a file.  Can I simplify this process?  Is there anyone else who uses
> multiple WMs?  How do you manage them?
> 
> Randy

Reply via email to