This is a script for Ubuntu that sets a random wallpaper whenever you invoke it, and works from cronjobs, so you can do cool stuff like cycle your wallpaper every 30 minutes:
Just download the random-wallpaper.sh and put it somewhere. I'd recommend
$HOME/bin, but you can put it anywhere and then chmod u+x it.
You can use cron to schedule the wallpaper change with a certain interval.
For a new wallaper every 30 minutes, for example, do:
*/30 * * * * $HOME/bin/random-wallpaper.shThe API is simple, https://source.unsplash.com/<size>/?<query>. Just modify line 18 as you see fit.