#!/bin/bash # with luck, this will change the root window background # at set times, using images found in the pwd # declare -a img count=0 count=$(($count)) for f_name in $(find . -name *.jpg) do img[count]=${f_name} count=$((count + 1)) # echo " ${count} ${f_name} ${img[count]} " done while [ true ] do # echo "top of while loop" cnt=0 cnt=$(($cnt)) while [ ${cnt} -lt ${count} ] do c_image=${img[cnt]} # echo ${c_image} qiv -t -y ${c_image} sleep 1m cnt=$((cnt + 1)) done done