-
-
Save g0053/eaabbf60fc2dc330490fb294165083ee to your computer and use it in GitHub Desktop.
Downloads a random image from Unsplash and sets the wallpaper every so often (currently only works with Gnome/Unity/Cinnamon/etc)
This file contains 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/sh | |
while : | |
do | |
wget -q -O unsplash_wallpaper.jpg https://unsplash.it/1920/1080/?random | |
gsettings set org.gnome.desktop.background picture-uri file://$PWD/unsplash_wallpaper.jpg | |
sleep 1h # Change this if you want a different update frequency (e.g. 30m, 12h, 24h, etc...). | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want curl instead just replace the wget line.
curl -o unsplash_wallpaper.jpg https://unsplash.it/1920/1080/?random