LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-17-2003, 02:46 PM   #1
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
Switch window managers


Say I'm running KDE at the moment, is there any way to switch from it to Fluxbox and not have to kill the X server (just the window manager), so I don't have to restart all my programs?
 
Old 05-17-2003, 02:50 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
I think what your asking is impossible as switching desktops usually from my understanding restarts the Xserver, thus would require killing any programs running, etc.
 
Old 05-17-2003, 03:13 PM   #3
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
Well, I know it is possible at least one way, since I am running X right now with no window manager as an experiment. I renamed any xinitrc files I could find so there'd be no default WM. Then I typed 'startx' and got a blank screen with only an xterm (that's in the Xsession file for failsafe). I can type fluxbox or startkde in the xterm and they'll come up, then I can kill them and start the other and all the programs keep running. They don't have titlebars or resize drag thingies though, since that's the WM's job. Interesting huh? I was just wondering, if I do have an .xinitrc file with 'exec <something>' in it, would there be a way to switch the WM, since I now know it's possible?
 
Old 05-17-2003, 03:58 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,743
Blog Entries: 4

Rep: Reputation: 76
I still don't think it's possible, but what you can try is running ps aux, then kill all the processes that relate to the WM but leave X running. Depending on what happens next... if you have a term then type 'exec kde' or 'exec fluxbox' or whatever.

I really don't think you're going to find joy though...because when you kill the WM, I think all the apps running under it are going to go down with it....
 
Old 05-17-2003, 11:17 PM   #5
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
I don't think so either, I was just thinking about it and remembered that X exits whenever the last program in .xinitrc stops running. So the only way would be to start X with no window manager and running and start it later manually.
 
Old 06-28-2003, 10:14 AM   #6
scottwest2
Member
 
Registered: Jun 2003
Distribution: Mac OS X 10.5.7, Athlon 64 X2 4200+, 2GB Ram, nVidia GeForce 9400 GT 1GB --- Ubuntu 9.04 Jaunty x64
Posts: 58

Rep: Reputation: 16
It is possible to do what you are saying. My xinitrc files are in /etc/X11/xinit/ and i have fluxbox set to my default and i have a link in my menu that says KDE which when clicked runs the command "startx /etc/X11/xinit/xinitrc.kde -- :1" and that starts kde on F8 so flux is on F7 and KDE is on F8 you could always do it the oppisite way with kde and use the xinitrc.fluxbox file or even xinitrc.gnome to start gnome
 
Old 06-28-2003, 06:43 PM   #7
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
That, however, doesn't switch to KDE it merely opens up KDE in addition to your current WM. Very handy though - I think that SuSE does something similar in their 'start' menu.
 
Old 09-11-2003, 11:35 PM   #8
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
I know it's been a while but i just thought of something else. You know how some WM's like IceWM or WindowMaker have stuff in the menu that says "Start <some other wm>", and you click that and the other WM pops up? That's what i'm talking about.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Window Managers vs Window Shell Environments DJOtaku Linux - General 7 08-09-2005 12:43 PM
Weird switch between login managers maelstrom209 Linux - Software 1 12-15-2004 06:04 PM
How do I switch Window Managers ru4life Linux - Newbie 1 07-19-2004 09:02 PM
how to switch beetween desktop managers in fc2? vital4ik Linux - Software 9 06-07-2004 09:17 AM
Window Managers vs. Desktop Managers mikeshn Linux - General 4 02-11-2004 11:31 AM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration