Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
96 lines (71 sloc) 2.01 KB
[ -f "$HOME/.profile" ] && . "$HOME/.profile"
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=gvim
export IMG_VIEWER=gpicview
export UTERM=urxvtc
# WMSCRIPTS_DIR is set in ~/.profile
export BROWSER="$WMSCRIPTS_DIR/browser.sh"
EXEC_CMD="xterm"
case $WM in
'fvwm' )
which fvwm > /dev/null && EXEC_CMD="exec fvwm" || export WN="$DEFAULT_WM"
;;
'xmonad' )
which xmonad > /dev/null && EXEC_CMD="exec xmonad" || export WN="$DEFAULT_WM"
;;
'wmii' )
which wmii > /dev/null && EXEC_CMD="exec wmii" || export WN="$DEFAULT_WM"
;;
'e17' )
which enlightenment_start > /dev/null && EXEC_CMD="exec ck-launch-session enlightenment_start" || export WN="$DEFAULT_WM"
;;
*)
which $1 > /dev/null && EXEC_CMD="exec $1" || export WN="$DEFAULT_WM"
;;
esac
"$HOME/src/dot.files/Xdefaults.sh" # Update ~/.Xdefaults
eval `"$WMSCRIPTS_DIR/agentCtl.sh" start all`
"$WMSCRIPTS_DIR/screensaverCtl.sh" start
"$WMSCRIPTS_DIR/swLang.sh" default
if [ "$UTERM" = 'urxvtc' ]; then
urxvtd -q -o -f
fi
if [ "`uname`" = 'FreeBSD' ]; then
if [ -f $HOME/.at_work ]; then
mixer vol 100 pcm 100
else
mixer vol 95 pcm 95
fi
fi
nice -n 20 unclutter -noevents -root &
nvidia-settings -l
hsetroot -fill $HOME/.wallpaper
redshift &
xset r rate 250 50 b off
if [ "$WM" != 'wmii' ]; then
when --wrap=0 --nopaging --monday_first --noampm | exec gxmessage -font "dejavu sans mono" -name when -buttons "_OK" -default '_OK' -file - &
fi
if [ -f $HOME/.at_work ]; then
workrave &
# skype &
else
pidgin &
fi
[ ! -f $HOME/.at_laptop ] && numlockx on || numlockx off # if ~/.at_laptop is present, then don't turn on numlock
workrave & # at work, run workrave
[ -f $HOME/msg ] && gxmessage -file $HOME/msg
case `uname` in
FreeBSD )
xset mouse 1/1 1
mixer vol 95 pcm 95
;;
esac
echo "$WM" > "$HOME/.last_wm"
$EXEC_CMD > $HOME/.xsession-errors 2> $HOME/.xsession-errors
# vim: set ts=4 sw=4 ft=sh nowrap:
Something went wrong with that request. Please try again.