#!/bin/sh

AFDIR=$HOME/.step

if [ "$*" = "" ] ; then
 echo "Usage : configure-look (lookfile) (bg color) (bg picture)"
 exit
fi

if [ ! "$1" = "" ] ; then
 ln -sf $AFDIR/$1 $AFDIR/afterstep.look ; ~/.step/make-menu
fi

if [ ! "$2" = "" ] ; then
 echo "$2" > $AFDIR/background.color
fi

if [ !  "$3" = "" ] ; then
 echo "$3" > $AFDIR/background.picture
else
 rm $AFDIR/background.picture
fi
