Xmonad - Random Background at Interval

2014-01-25 14:51:00 +0000 - Written by Carl Burks

Make a file randombackgroundatinterval:

while x=0;do find $1 | grep 'jpg\|png' | shuf | head -n 1 | xargs -i xloadimage -border black -onroot -fullscreen '{}'; sleep $2; done

run it with the top directory for images and how often you want them to change. example:

./randombackgroundatinterval /home/<YOUR USER NAME>/Pictures 3

Would pick a random jpg or png from the /home//Pictures directory, and its subs and display a new one every three seconds.