wok-next diff slitaz-next/stuff/root/.xinitrc @ rev 19865
slitaz-base-files: typo
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Sep 12 03:41:56 2017 +0300 (2017-09-12) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/slitaz-next/stuff/root/.xinitrc Tue Sep 12 03:41:56 2017 +0300 1.3 @@ -0,0 +1,22 @@ 1.4 +# ~/.xinitrc: Executed by Slim/LXDM login manager to startx X session. 1.5 +# You can use F1 with Slim to change your window manager or configure 1.6 +# it permanently with your personal applications.conf file. 1.7 +# 1.8 +. $HOME/.config/slitaz/applications.conf 1.9 +tazbox mkmenu 1.10 + 1.11 +[ "$1" ] && WINDOW_MANAGER="$1" 1.12 + 1.13 +EXEC="exec ck-launch-session dbus-launch --sh-syntax --exit-with-session" 1.14 + 1.15 +LOG="/tmp/log" ; X=$LOG ; ERR=$X 1.16 + 1.17 +case "$WINDOW_MANAGER" in 1.18 + openbox|lxde*|icewm*|xfce4|compiz|karmen|dwm|fluxbox*|razor*|mate*) 1.19 + $EXEC ${WINDOW_MANAGER%-session}-session ;; 1.20 + enlightenment) 1.21 + $EXEC enlightenment_start ;; 1.22 + kde) $EXEC startkde ;; 1.23 + lxqt) $EXEC startlxqt ;; 1.24 + *) $EXEC $WINDOW_MANAGER ;; 1.25 +esac 2>>$ERR >>$X