2024-01-05 19:43:07 +01:00
|
|
|
#!/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
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
gnome) exec gnome-session;;
|
2024-01-05 19:43:07 +01:00
|
|
|
kde) exec startplasma-x11;;
|
|
|
|
lxqt) exec startlxqt;;
|
2024-01-05 19:43:07 +01:00
|
|
|
lxde) exec startlxde;;
|
|
|
|
xfce) exec startxfce4;;
|
2024-01-05 19:43:07 +01:00
|
|
|
*) for s in startlxqt startplasma-x11 gnome-session startlxde startxfce4; do
|
2024-01-05 19:43:07 +01:00
|
|
|
e=$(which $s)
|
|
|
|
if [ "$e" -a -x $e ]; then
|
|
|
|
exec $e
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done ;;
|
|
|
|
esac
|