From 37e4e0f04e8a0e014f6763c757c8d4c32d81fb8c Mon Sep 17 00:00:00 2001 From: Daniel Tsvetkov Date: Wed, 5 May 2021 15:25:29 +0200 Subject: [PATCH] update apod --- apod.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apod.sh b/apod.sh index 682b3f1..9709fb7 100755 --- a/apod.sh +++ b/apod.sh @@ -3,13 +3,13 @@ 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" - xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitoreDP-1/workspace0/last-image --set /home/pi2/Pictures/wallpapers/blue_galaxy_wallpaper.png - xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitorHDMI-2/workspace0/last-image --set /home/pi2/Pictures/wallpapers/blue_galaxy_wallpaper.png - # feh --randomize --bg-fill /home/pi2/Pictures/wallpapers/* + # xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitoreDP-1/workspace0/last-image --set /home/pi2/Pictures/wallpapers/blue_galaxy_wallpaper.png + # xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitorHDMI-2/workspace0/last-image --set /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" - xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitoreDP-1/workspace0/last-image --set "$(pwd)/image.jpg" - xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitorHDMI-2/workspace0/last-image --set "$(pwd)/image.jpg" - # feh --bg-fill "$(pwd)/image.jpg" + # xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitoreDP-1/workspace0/last-image --set "$(pwd)/image.jpg" + # xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitorHDMI-2/workspace0/last-image --set "$(pwd)/image.jpg" + feh --bg-fill "$(pwd)/image.jpg" fi