#!/bin/bash

# root_pictures cycles through a set of pictures in the root window. 
# Since it leaves xv running it eats something like 6MB of ram, all
# the time.

# The delay in seconds between picture changes.
DELAY=1800

# The pictures to include, several entries can be given if separated by a space.  
# Does not recurse through subdirs.
PICS="$HOME/Pictures/Astronomy/* $HOME/Pictures/Anime/*"

# Background colour, black is propably what you want...
COLOUR=black

# Options given to xv.
# -maxpect       Small pictures are enlarged
# -viewonly      Hide the XV icon, you propably want to do this
# -random        Randomize the order of the pictures
# +noresetroot   Hide the redraw
OPTIONS="-maxpect -viewonly -random +noresetroot"

while [ 1 ];  do
xv $OPTIONS -wait $DELAY -rmode 5 -bg $COLOUR $PICS
done

