diff --git a/unsplash_generator.sh b/unsplash_generator.sh index 7c4c6cb..239c3bf 100755 --- a/unsplash_generator.sh +++ b/unsplash_generator.sh @@ -15,10 +15,13 @@ PWD=$(dirname $(readlink -f $0)) # https://source.unsplash.com/ #wget -O $PWD/wallpaper.jpg https://source.unsplash.com/collection/630950/1920x1200 -wget -O $PWD/wallpaper.jpg https://source.unsplash.com/1920x1200/\?stars,nature,sea,wather +#wget -O $PWD/wallpaper.jpg https://source.unsplash.com/1920x1200/\?stars,nature,sea,wather + +url=$(curl https://api.unsplash.com/photos/random\?client_id\=sqNEPALHnwDAScQe7uA-l_1HDYH_XCHgCg3xLha47fA | jq -r '.urls.raw') +wget -O $PWD/wallpaper.jpg $url # setting wallpaper as background for screensaver # http://youness.net/linux/set-random-wallpapers-unsplash-com-ubuntu -gsettings set org.gnome.desktop.screensaver picture-uri file://$PWD/wallpaper.jpg -gsettings set org.gnome.desktop.background picture-uri file://$PWD/wallpaper.jpg +#gsettings set org.gnome.desktop.screensaver picture-uri file://$PWD/wallpaper.jpg +#gsettings set org.gnome.desktop.background picture-uri file://$PWD/wallpaper.jpg