[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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Arch- Multiple DEs- switch without editing ~/.xinitrc?
Hi!
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
Code:
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
sessions openbox-session,xmonad,dwm,wmii,awesome
Last edited by joe_2000; 04-13-2014 at 02: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:
Code:
[anthony@anthony-eee ~]$ cat .xinitrc
#!/bin/sh
#
# ~/.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"
done
unset f
fi
exec startxfce4
#exec startlxde
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.
Quote:
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
Code:
Code:
startx xfce4
and
Code:
startx lxde
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.