[SOLVED] Arch- Multiple DEs- switch without editing ~/.xinitrc?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Arch- Multiple DEs- switch without editing ~/.xinitrc?
I just installed Arch Linux on an Eee PC this weekend. So far, it's gone good! I had one question that I haven't quite found an answer to. I have LXDE and Xfce4 installed, and I switch between the two a lot. As of now, I have to commennt/uncomment lines in my ~/.xinitrc file to switch between the two.. I was hoping that there would be something like Slackware's "xwm-config" but that command doesn't exist. Is there something I'm missing, or should I look into writing my first seme-useful shell script?
In case you are using slim (which is the default of crunchbang, which I am using, quite nice btw), you can configure this in /etc/slim.conf
See below the relevant sections of my slim.conf
Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
sessionstart_cmd /usr/share/crunchbang/cb-user-setup %user
# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
Last edited by joe_2000; 04-13-2014 at 03:12 PM.
Reason: Added slim config
This is something you would configure in your display manager. Which one do you use?
I don't know...How would a find out?
I have XFCE4 and LXDE as desktop environments. I think LXDE uses Openbox, not sure about XFCE4.
I think I installed XFCe first, but again I'm not sure.
Here's my .xinitrc, I just comment/uncomment the last 2 lines where appropriate:
[anthony@anthony-eee ~]$ cat .xinitrc
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
How do you start your X session? Do you boot into cli and type startx? That would mean you are using no display manager at all...
I have CLI login and type 'startx' to start the gui. I would prefer to keep it, mostly because I like it, but it keeps my (computer-illiterate) sisters out of everything even if they guess my password.
Just tried startx with an argument, which works, too.
So in case you are not using a display manager you could use an xinitrc similar to mine and do
Alternatively, you may want to install slim. It's nice because it's very lightweight and configurable...
For whatever reason, regardless of whatever I type as an argument to startx, it just starts the gui specified in the .xinitrc file. Even
I'll try to look into that tomorrow, but I can't guarantee it, I have a lot going on at school right now (the robotics team that I'm a member of is going to St. Louis for world championships in a week!...and oh, yeah, there's that pesky homework too)