This simple shell script runs every hour and takes an image from Unplash.com and sets it as a wallpaper.
You can choose whatever wallpaper you want by changing the URL in wget
of the shell script.
Go to source.unplash.com to know more about the Unplash API.
- Place this script in your /bin directory.
- Open your terminal and make it executable with
sudo chmod +x /bin/unsplash.sh
- Run it using
./unsplash.sh
- This will add the cronjob automatically and set your wallpaper.
NB: If you change your script name from unsplash.sh
to anything.sh
, rename the file name in the code.