#!/bin/sh

userresources=$HOME/.Xresources

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

# EvilWM with Ctrl-Alt-Enter mapped to xterm
/vol/linux/apps/evilwm/latest/bin/evilwm -term xterm &

# Removes audible system bell (beep)
xset -b

# Loads an ssh-agent (for SSH authentication)
ssh-agent &

# Binds certain key combinations to execute commands, i.e. load programs
/vol/csg/public/users/mrb04/xbindkeys/xbindkeys -f $HOME/.xbindkeysrc &

# Changes background to black, mouse cursor to white
xsetroot -solid black -cursor_name left_ptr -rv &

# Generates a picture of the Earth for the desktop background
sleep 6s && ~mrb04/bin/planet.sh &

# Uses an image for the desktop background
#Esetroot $HOME/wallpaper.png

# Puts a clock in the top right corner
xclock -d -brief -geometry 56x35-1+1 &

# Loads XMMS
#xmms &

# Loads GAIM (for MSN messenger etc)
/vol/linux/apps/gaim/latest/bin/gaim &

# Loads Opera web browser in the bottom half of the screen
opera -geometry 1260x637+11+377 &

# Sets a variable for ROX-filer
declare -x CHOICESPATH="$HOME/.Choices:/usr/local/share/Choices:/usr/share/Choices"

# Loads ROX panel, at the bottom of the screen
#rox -b=MyPanel &

# Loads two xterms at the top of the screen
xterm -fs 10 -geometry 77x19+11+11 &
xterm -fs 10 -geometry 77x19+650+11 &

# Run xtrlock after 3 minutes inactivity or when the cursor is left in the top
# left for 3 seconds. When xautolock exits, the session is considered to have ended 
# cleanly, so you can have a keylaunch binding for xautolock -exit as a means of 
# properly ending your session.
exec /vol/csg/public/users/mrb04/xautolock/xautolock -time 3 -corners +000 -cornerdelay 1

