Permalink
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (58 sloc) 1.74 KB
export LANG="${LANG:-en_GB.UTF-8}" OS="${OS:-`uname`}"
[ -f "$HOME/.common_env" ] && . "$HOME/.common_env"
if [ "$OS" = "Darwin" ]; then
. /usr/X11/lib/X11/xinit/xinitrc
exit
fi
DEFAULT_WM="fvwm"
if [ "$1" ]; then
export WM="$1"
else
export WM="$DEFAULT_WM"
[ -f "$HOME/.last_wm" ] && WM="`cat "$HOME/.last_wm"`"
fi
export GUI_EDITOR=e
export IMG_VIEWER=gpicview
export UTERM=urxvtc
export GUI=yes
# XDG_CONFIG_HOME/wmscripts is set in ~/.profile
export BROWSER="browser.sh"
EXEC_CMD="xterm"
gpg-connect-agent /bye
xfsettingsd
case $WM in
'fvwm' | 'xmonad' | 'wmii' | 'awesome' )
which $WM > /dev/null && EXEC_CMD="exec $WM" || export WM="$DEFAULT_WM"
;;
'e17' | 'enlightenment' )
# which enlightenment_start > /dev/null && EXEC_CMD="exec ck-launch-session enlightenment_start" || export WM="$DEFAULT_WM"
which enlightenment_start > /dev/null && EXEC_CMD="exec enlightenment_start" || export WM="$DEFAULT_WM"
;;
'xfce4' )
which startxfce4 > /dev/null && EXEC_CMD="exec startxfce4" || export WM="$DEFAULT_WM"
;;
*)
which $1 > /dev/null && EXEC_CMD="exec $1" || export WM="$DEFAULT_WM"
;;
esac
"$HOME/src/dot.files/Xdefaults.sh" # Update ~/.Xdefaults
"$XDG_CONFIG_HOME/wmscripts/screensaverCtl.sh" start
swLang default
if [ "$UTERM" = 'urxvtc' ]; then
urxvtd -q -o -f
fi
nice -n 20 unclutter -noevents -root &
nvidia-settings -l
hsetroot -fill $HOME/.config/wallpaper
#redshift &
xset r rate 250 50 b off
# workrave &
case "$OS" in
'FreeBSD' )
mixer vol 95 pcm 95
xset mouse 1/1 1
audit_msg="`pkg audit`" || exec message.sh -name "pkg audit" -buttons "_OK" -default '_OK' "$audit_msg" &
esac
echo "$WM" > "$HOME/.last_wm"
$EXEC_CMD > $HOME/.xsession-errors 2>&1
# vim: set ts=4 sw=4 ft=sh nowrap: