#!/bin/sh

# Set background and coursors for all monitors
xsetroot -d :0.0 -cursor_name top_left_arrow -bitmap .background
xsetroot -d :0.1 -cursor_name top_left_arrow -solid black
xsetroot -d :0.2 -cursor_name top_left_arrow -solid black

# Load xload on the first Monitor
xload -geometry 64x64-0-0 -update 2 -nolabel -bg black -fg white&

# Start larsclock and save it's PID
larsclock &
BGPID=$!

# Start ssh-agent and larswm
/usr/bin/ssh-agent /usr/X11R6/bin/larswm

# After larswm being done kill larsclock
kill $BGPID

# Exit from this script
exit 0
