IMG="$HOME/computer/images"
DELAY="2"

for pic in `find $IMG`; do 
   if [ ! -d $pic ]; then
      wmsetbg -e $pic
      sleep $DELAY
   fi   
done