Skip to content

Instantly share code, notes, and snippets.

@alpha-beta-soup
Last active January 8, 2020 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpha-beta-soup/678cd1dfff0b78ec50f951fcab94d0f8 to your computer and use it in GitHub Desktop.
Save alpha-beta-soup/678cd1dfff0b78ec50f951fcab94d0f8 to your computer and use it in GitHub Desktop.
Sets GNOME wallpaper to latest Himawari image
# Update wallpaper every 15 minutes
15 * * * * /bin/bash /home/richard/scripts/set-wallpaper.sh
#!/bin/bash
# Image: latest Himawari 8 true colour
URL=http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_natural_color.jpg
TARGET=/home/richard/Pictures/full_disk_ahi_natural_color.jpg
# Download
wget -qcN $URL -O $TARGET
# Set wallpaper
gsettings set org.gnome.desktop.background picture-uri "file://$TARGET"
gsettings set org.gnome.desktop.background picture-options "scaled"
@alpha-beta-soup
Copy link
Author

Alternative source: http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_true_color.jpg

curl alternative over wget: curl -s $URL > $TARGET

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment