slitaz-configs view rootfs/etc/skel/.xinitrc @ rev 251

xinitrc: clean-up
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Nov 06 00:36:52 2014 +0200 (2014-11-06)
parents 2987498eeab8
children 858bce45ef5f
line source
1 # ~/.xinitrc: Executed by Slim/LXDM login manager to startx X session.
2 # You can use F1 with Slim to change your window manager or configure
3 # it permanently with your personal applications.conf file.
4 #
5 . $HOME/.config/slitaz/applications.conf
7 [ "$1" ] && WINDOW_MANAGER="$1"
9 EXEC="exec dbus-launch --sh-syntax --exit-with-session"
11 LOG="/dev/null" ; X=$LOG ; ERR=$X
13 case "$WINDOW_MANAGER" in
14 openbox|lxde*|icewm*|xfce4|compiz|karmen|dwm|fluxbox*)
15 $EXEC ${WINDOW_MANAGER%-session}-session ;;
16 enlightenment)
17 $EXEC enlightenment_start ;;
18 razor*) $EXEC razor-session ;;
19 lxqt) $EXEC startlxqt ;;
20 *) $EXEC $WINDOW_MANAGER ;;
21 esac 2>>$ERR >>$X