Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 899 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 899 Bytes

Wallpaperupdater

This script is used to automatically set the wallpaper of an Ubuntu machine to some specific file fetched via wget.

How to enable it :)

  • Open a terminal
  • cd to this folder (where this readme is located)
  • run ./wpu.sh -i

Script now runs every hour at 42

How to revert this :(

  • 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.

wpu.sh

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.

What it does

Sets up a cron job to run script.h every hour at minute 42.

script.sh

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.