just fooling around with google, python and feh, ended up with this:
pick a random file from a folder with images (as far as I know it's recursive, but I have only one level, so I didn't test it).
#!/usr/bin/python import os, random working_directory = '/home/hrnn/wallpapers/' new_wallpaper = random.choice(os.listdir('/home/hrnn/wallpapers')) os.system('DISPLAY=:0 feh --bg-scale ' + working_directory + new_wallpaper )
the "DISPLAY=:0" bit is necessary as cron runs in a lower level and doesn't care about X, so it must be explicitly stated in order for feh to do what I'm asking. so said google, at least.
saved simply as rotatewallpaper (no extension)
and the crontab, every ten minutes
*/10 * * * * /home/hrnn/rotatewallpaper
Last edited by hrnn187 (2014-08-18 10:53:39)