Carl Burks is a software developer for a global financial institution. With over ten years experience in technology and software development for financial organizations and over twenty years of software experience, Carl Burks provides articles, musings and insight into technology issues, software development, and other selected topics.

Xmonad - Random Background at Interval


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.

./randombackgroundatinterval /home//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.