* [gentoo-user] startx with multiple window managers
@ 2013-08-23 17:39 Randy Westlund
2013-08-23 18:29 ` Willie
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Randy Westlund @ 2013-08-23 17:39 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] startx with multiple window managers
2013-08-23 17:39 Randy Westlund
@ 2013-08-23 18:29 ` Willie
2013-08-23 20:47 ` Philip Webb
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Willie @ 2013-08-23 18:29 UTC (permalink / raw
To: Gentoo Mailing List
[-- Attachment #1: Type: text/plain, Size: 1098 bytes --]
I just started another Xfce session by typing "startx -- :1". I am pretty
sure you can also use "startxfce4" without editing the file that you are
editing.
On Fri, Aug 23, 2013 at 10:39 AM, Randy Westlund <rwestlun@gmail.com> 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
>
>
--
Willie Matthews
matthews.willie@gmail.com
[-- Attachment #2: Type: text/html, Size: 1680 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] startx with multiple window managers
2013-08-23 17:39 Randy Westlund
2013-08-23 18:29 ` Willie
@ 2013-08-23 20:47 ` Philip Webb
2013-08-23 21:15 ` Michael Mair-Keimberger
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Philip Webb @ 2013-08-23 20:47 UTC (permalink / raw
To: gentoo-user
130823 Randy Westlund wrote:
> I launch X with startx. I also use multiple window managers.
> My procedure for starting multiple managers is this:
> - log in - startx - login on tty2 - edit .xinitrc - startx -- :1
> .xinitrc goes from:
> exec xmonad
> #exec startxfce4
> to:
> #exec xmonad
> exec startxfce4
> Then I can switch between tty7 and tty8 at will.
> Can I simplify this process?
When I used 2 WMs, I had 2 versions of .xinitrc ,
which I called eg '.xinitrc-a' '.xinitrc-b'.
All I had to do was enter 'cp .xinitrc-a .xinitrc' & then 'startx'.
That's slightly simpler than what you've been doing.
However, 'startx' is a shell script,
so you sb able to edit it to contain a query as to which WM to use ;
you could alias the choices to single letters, then enter what you need.
Let us all know if that works (smile).
--
========================,,============================================
SUPPORT ___________//___, Philip Webb
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
TRANSIT `-O----------O---' purslowatchassdotutorontodotca
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] startx with multiple window managers
2013-08-23 17:39 Randy Westlund
2013-08-23 18:29 ` Willie
2013-08-23 20:47 ` Philip Webb
@ 2013-08-23 21:15 ` Michael Mair-Keimberger
2013-08-24 4:56 ` the
2013-08-24 17:19 ` Willie WY Wong
4 siblings, 0 replies; 7+ messages in thread
From: Michael Mair-Keimberger @ 2013-08-23 21:15 UTC (permalink / raw
To: gentoo-user; +Cc: Randy Westlund
[-- Attachment #1: Type: text/plain, Size: 1389 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 8856 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] startx with multiple window managers
@ 2013-08-24 2:47 Thomas Mueller
0 siblings, 0 replies; 7+ messages in thread
From: Thomas Mueller @ 2013-08-24 2:47 UTC (permalink / raw
To: gentoo-user
> 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.
I've wondered how to run X simultaneously or concurrently with more than one window manager or with sessions for multiple users, root and nonroot.
But to choose between window managers, I have multiple xinitrc files, like
startx /usr/local/lib/X11/xinit/xinitrc.icewm
That is for FreeBSD; actual path will vary by OS and distro.
Tom
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] startx with multiple window managers
2013-08-23 17:39 Randy Westlund
` (2 preceding siblings ...)
2013-08-23 21:15 ` Michael Mair-Keimberger
@ 2013-08-24 4:56 ` the
2013-08-24 17:19 ` Willie WY Wong
4 siblings, 0 replies; 7+ messages in thread
From: the @ 2013-08-24 4:56 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
$ xinit lxsession -- :1
?????
- --
Stop talking and start compiling.
Linux user #557897
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJSGD0XAAoJEK64IL1uI2ha4SMH/3kCws5J3ik+LKRqC7rkaNVe
AA7kBumcy0I7EAkGW/lGPtKjHtHlDcDtZumUyApJpDBZQ3PXP1amaBD5qz5qf5Yq
3u1qnWSRNGtEZfQCGtJxOWV70f506PXvdle5Pif9LETsh+4bDUH03GKjmuin2ClV
0Fi1tMHQABwvahXYGxo6poL39FKw2ucyAGsEgL7MMGdW9igMQ8KuhvMqtKY12msf
OqO0dA9nYx/MzIyMJOZwYLjuzYudkva8quFMEdky8U7KHu00FPpXjJbNnpSYikqx
jV/lV81nuh7JtZE0AYUeAlStVBa5S24ehCCbuR6zOefE9c6Ze4TVIEpmEitBHzs=
=xqJ2
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] startx with multiple window managers
2013-08-23 17:39 Randy Westlund
` (3 preceding siblings ...)
2013-08-24 4:56 ` the
@ 2013-08-24 17:19 ` Willie WY Wong
4 siblings, 0 replies; 7+ messages in thread
From: Willie WY Wong @ 2013-08-24 17:19 UTC (permalink / raw
To: gentoo-user
On Fri, Aug 23, 2013 at 01:39:45PM -0400, Penguin Lover Randy Westlund squawked:
> - 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?
If you use xinit instead of startx, you can use the environmental
variable
~ $ XINITRC=".xinitrc-xmonad" xinit -- :1
should do what you want. Just keep the two different versions of
.xinitrc-xmonad and .xinitrc-xfce and use aliases if you don't want
too much typing.
W
--
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire
et vice versa ~~~ I. Newton
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-08-24 17:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-24 2:47 [gentoo-user] startx with multiple window managers Thomas Mueller
-- strict thread matches above, loose matches on Subject: below --
2013-08-23 17:39 Randy Westlund
2013-08-23 18:29 ` Willie
2013-08-23 20:47 ` Philip Webb
2013-08-23 21:15 ` Michael Mair-Keimberger
2013-08-24 4:56 ` the
2013-08-24 17:19 ` Willie WY Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox