#!/bin/sh
#
# @(#)$KimmoSuominen: .cfg/home/dot.xinitrc,v 2.30 2005/02/20 19:42:03 kim Exp $
#
# This is the startup script for xinit (called by startx).
#
# Fix SHLVL, so it won't be 2 when starting from a virtual terminal.
#
unset SHLVL
#
# Let's store all the nice resources in the server, so we won't
# need them available at all the various hosts we're using.
#
xrdb -load $HOME/.Xresources
sleep 1
#
# Set the bell values to something I can hear.
#
xset b 50 800 100
#
# Start XFCE
#
XFCEXINITRC=${HOME}/.config/xfce4/xinitrc
if [ -r ${XFCEXINITRC} ]
then
    export BASEDIR
    BASEDIR=`dirname ${XFCEXINITRC}`/
    exec /bin/sh ${XFCEXINITRC}
fi
#
# Start X Session Manager
#
exec xsm
#
# Still here?
#
exec xterm -geometry 80x24-0-0 -title 'Login' -ls
