From b050de23c3f29f0c0ce0d9718df628045dc06b12 Mon Sep 17 00:00:00 2001 From: Daniel Tsvetkov Date: Sun, 25 Mar 2018 03:48:29 +0200 Subject: [PATCH] updated for i3 bg set --- apod.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apod.sh b/apod.sh index 4a213ed..7e47358 100755 --- a/apod.sh +++ b/apod.sh @@ -2,8 +2,10 @@ 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" + # 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" else curl -s "$NASA_APOD_BASE_URL/$IMAGE_URL" > image.jpg - gsettings set org.gnome.desktop.background picture-uri "file:///$(pwd)/image.jpg" + # gsettings set org.gnome.desktop.background picture-uri "file:///$(pwd)/image.jpg" + feh --bg-fill "$(pwd)/image.jpg" fi