
# Use Cronjobs
### To Set Random Wallpaper from UnSplash
To get a random pictures from UnSplash using keywords, and then set the pictures as wallpapers in Cinnamon or Mate, you can use a script file, and call it with crontab.
This website explains how:
### For Cinnamon Desktop
In addition to what the website says, modify the unsplash.sh like this to get smooth wallpaper transition:
(Replace water,nature
with your own keywords)<br>#!/bin/bash<br>wget -O /var/tmp/wallpaper-temp.jpg https://source.unsplash.com/1920x1080/?water,nature<br><br>mv /var/tmp/wallpaper-temp.jpg /var/tmp/wallpaper.jpg<br><br>gconftool set org.cinnamon.desktop.background picture-uri 'file:///var/tmp/wallpaper.jpg'<br>
Type this command:<br>crontab -e<br>
Add this line to run script every 5 mins.:<br>*/5 * * * * /bin/unsplash.sh<br>
Restart cron<br>sudo service cron reload<br>
### For Mate Desktop
Use this command in the script instead of the Cinnamon command above:<br>settings set org.mate.background picture-file '/var/tmp/wallpaper.jpg'<br>
⚡️ Follow Freedom Tech
#CronJob #RandomWallpaper #CinnamonDesktop #MateDesktop
#Linux #FreedomTech