Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

clum

Using multiple window managers

This topic is 5222 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have several window managers that I use on various occasions. However, I don''t like to use any bloated login managers like kdm. With a bit of research, I discovered that you can pass a window manager as an argument to startx. Unfortunately, I found that I have to type in the full path - i.e. startx /usr/bin/openbox . Two of the WMs are in /usr/bin, one is in /opt/kde3.2.2/bin (I think). Both of these directories are in my $PATH. Is there someway I can avoid typing in the whole path to my window managers? Zorx (a Puzzle Bobble clone) Discontinuity (an animation system for POV-Ray)

Share this post


Link to post
Share on other sites
Advertisement
You can always put it in a simple script in your homedir and run it from there. That can be even faster than typing ''startx''.


SwSh website!

Share this post


Link to post
Share on other sites
By default, startx looks for the script file ~/.xinitrc. Here you can put whatever commands you wish to be run upon starting X.

Share this post


Link to post
Share on other sites
quote:
Original post by Strife
By default, startx looks for the script file ~/.xinitrc. Here you can put whatever commands you wish to be run upon starting X.
I know that...the problem was that I wanted sometimes one set of commands to occur and sometimes others.

Zorx (a Puzzle Bobble clone)
Discontinuity (an animation system for POV-Ray)

Share this post


Link to post
Share on other sites
or - put an alias in ~/.bashrc

alias openbox="startx /usr/bin/openbox"

or whatever, then you can just type openbox to start openbox (you''ll probably have to log out and log back in again

But, both fluxbox and xfce4 have the commands startfluxbox and startxfce4 (in /usr/bin) (I''m assuming that this means openbox will have a startopenbox command), and gnome has the command gnome-session. I think kde just needs you to type kde-3.2 but I don''t have it installed so I''m not sure

Share this post


Link to post
Share on other sites
The alias idea isn''t bad, but I''m afraid that there startion and startopenbox commands don''t exist, and while startkde does exist, it expects a functioning X environment and needs to be passed as a parameter to startx

Zorx (a Puzzle Bobble clone)
Discontinuity (an animation system for POV-Ray)

Share this post


Link to post
Share on other sites
quote:
Original post by clum
quote:
Original post by Strife
By default, startx looks for the script file ~/.xinitrc. Here you can put whatever commands you wish to be run upon starting X.
I know that...the problem was that I wanted sometimes one set of commands to occur and sometimes others.

Zorx (a Puzzle Bobble clone)
Discontinuity (an animation system for POV-Ray)


Well then, quite frankly, you''re SOL without doing work on your part. Whenever I wanted to change something, I''d just quickly comment out the parts I didn''t want and uncomment what I did want. It''s not really that hard. You''re best bet may very well be simply writing aliases for whichever window manager you''d like to use.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!