slitaz-configs view rootfs/root/.xinitrc @ rev 244

refactoring xinitrc
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sun Sep 21 00:56:08 2014 +0000 (2014-09-21)
parents c7c084e84dd4
children
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 . /etc/slitaz/applications.conf
7 [ "$1" ] && WINDOW_MANAGER="$1"
9 EXEC="exec dbus-launch --sh-syntax --exit-with-session"
10 S="/tmp/X-output" # http://root:root@tazpanel:82/boot.cgi?log#slim
12 LOG=2; case "$LOG" in
13 0) X="/dev/null"; echo WM_stdout '>' $X in $HOME/.xinitrc >$S ;W=$X ;;
14 1) X=$S ; W=$X ; rm -f $W ;;
15 2) X=$S ; W="$HOME/.wm_debug+warnings" ; rm -f $W $X ;;
16 esac
18 case "$WINDOW_MANAGER" in
19 openbox|lxde*|lxqt*|xfce4|compiz|karmen|dwm|fluxbox*)
20 $EXEC ${WINDOW_MANAGER%-session}-session ;;
21 razor*)
22 $EXEC razor-session ;;
23 enlightenment)
24 $EXEC enlightenment_start ;;
25 *)
26 $EXEC $WINDOW_MANAGER ;;
27 esac 2>>$W >>$X