On my Slackware box I can start up another window manager or desktop environment like this (for KDE for example): startx /etc/X11/xinit/xinitrc.kde -- :2 vt8.
Can I do something similar in Arch (I cannot find /etc/X11/xinit/xinitrc.* files)?
Arch Linux has a /etc/skel/.xinitrc file. You could copy it to your home folder and edit it to launch whatever environment you want.
You should be able to have multiple copies each named differently.
Or just use one ~/.xinitrc that accepts parameters.
This is really easy if you do not use a graphical login manager. Just switch to an unused console Ctrl-Alf-F(1-6), login in, and use startx to start an X session,
In my case, I issue a command like: WM=kde startx
Here is my ~/.xinitrc:
setxkbmap -option ctrl:nocaps case $WM in openbox) exec dbus-launch openbox-session ;; gnome) exec gnome-session ;; e17) enlightenment_start ;; vb) VirtualBox -startvm "Windows XP" -fullscreen ;; xfce4) exec startxfce4 ;; compiz) .config/compiz/startup.sh& exec dbus-launch fusion-icon ;; kde) conky & exec startkde ;; *) exec dbus-launch openbox-session # conky & # exec startkde ;; esac
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
You assume people are rational and influenced by evidence. You must not work with the public much. -- Trilby
How to Ask Questions the Smart Way
@ewaller, you know that you can put that "setxkbmap" setting in your /etc/X11/xorg.conf.d/10-evdev.conf? In the keyboard catchall grouping, I just put 'Option "XKBOptions" "caps:super"' in teh end of that section, and blamo! no more pesky caps lock!
Edit: BTW, I use the "Super" key as the modifier key for i3.
Last edited by WonderWoofy (2013-05-18 05:37:07)
Modifying /etc/X11/xorg.conf.d/10-evdev.conf means one more .pacnew to deal with ;P