A small rotating wallpaper program

Posted:

I recently felt the need for a rotating desktop background - that is one that switches the image every so often. I'm not aware of any specifc programs that solve this exact problem, but feh sports some neat command-line options that make scripting up such a thing a cinch. Behold:

#!/bin/fish

set feh_list_location $HOME/pictures/.feh_list.txt

while true;
    feh --filelist $feh_list_location --randomize --bg-fill; and sleep 5m
end
I'm using fish here because I like it, and that .feh_list.txt file just has a list of absolute paths to files. See the manpage for futher details, but I thought this was pretty sweet.
This page was last modified on: 2020-07-26