Last active
January 8, 2020 04:23
-
-
Save alpha-beta-soup/678cd1dfff0b78ec50f951fcab94d0f8 to your computer and use it in GitHub Desktop.
Sets GNOME wallpaper to latest Himawari image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update wallpaper every 15 minutes | |
15 * * * * /bin/bash /home/richard/scripts/set-wallpaper.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternative source: http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_true_color.jpg
curl
alternative overwget
:curl -s $URL > $TARGET