earthwall.sh is a simple bash script to change your macOS wallpaper to a random image from earthview.withgoogle.com. The script was tested on Catalina. You can set up a periodic wallpaper change using cron. Take a look at the example in Cron.
The script only supports macOS and requires an internet connection to download the wallpaper. Install the script using any of the methods bellow:
The repository can be cloned to any location.
git clone https://github.com/ngserro/earthwall.git; cd earthwall; chmod +x earthwall.sh
To install without Git:
cd; curl -L https://github.com/ngserro/earthwall/tarball/master | tar -xzv; cd ngserro-earthwall-*; chmod +x earthwall.sh
If you want to update you can simply run that command again.
Make sure you are in the directory where the script is located and run:
./earthwall.sh
That's it! Your wallpaper is now an image from earthview.withgoogle.com.
If you want your wallpaper to change periodically you can set up the script execution in crontab:
crontab -e
Then add a line like this:
0 */2 * * * PATH_TO_SCRIPT/earthwall.sh
This is an example for changing the wallpaper every 2 hours. Change PATH_TO_SCRIPT accordingly.