choose random wallpaper from Pictures wallpapers folder

This commit is contained in:
Daniel Tsvetkov 2018-04-02 17:02:22 +02:00
parent b050de23c3
commit a0669195df

View File

@ -3,7 +3,7 @@ NASA_APOD_BASE_URL="https://apod.nasa.gov/apod"
IMAGE_URL=`curl -s $NASA_APOD_BASE_URL/astropix.html | grep -oh 'href="image/.*"' | grep -oh 'image/.*jpg' | head -1`
if [ -z "$IMAGE_URL" ]; then
# gsettings set org.gnome.desktop.background picture-uri "file:///home/pi2/Pictures/wallpapers/blue_galaxy_wallpaper.png"
feh --bg-fill "/home/pi2/Pictures/wallpapers/blue_galaxy_wallpaper.png"
feh --randomize --bg-fill /home/pi2/Pictures/wallpapers/*
else
curl -s "$NASA_APOD_BASE_URL/$IMAGE_URL" > image.jpg
# gsettings set org.gnome.desktop.background picture-uri "file:///$(pwd)/image.jpg"