This script is used to automatically set the wallpaper of an Ubuntu machine to some specific file fetched via wget.
- Open a terminal
- cd to this folder (where this readme is located)
- run
./wpu.sh -i
Script now runs every hour at 42
- Open a terminal
- cd to this folder (where this readme is located)
- run
./wpu.sh -u
Script removes all files and keeps this folder intact.
This script is both the installer and uninstaller.
Which to run is set via the flag -i
or -u
.
Flag -r
is equivalent to ./wpu.sh -u && ./wpu.sh -i
.
Is no flag passed, nothing happens.
Sets up a cron job to run script.h every hour at minute 42.
First it checks if my website is up and running. If it is, a picture is pulled from it. This picture is then set as wallpaper.