diff --git a/unsplash_generator.sh b/unsplash_generator.sh index 042faf6..a8c526c 100755 --- a/unsplash_generator.sh +++ b/unsplash_generator.sh @@ -11,7 +11,7 @@ PWD=$(dirname $(readlink -f $0)) # here are some other ways of downloading wallpaper #get random photo -url=$(curl https://api.unsplash.com/photos/random\?client_id\=sqNEPALHnwDAScQe7uA-l_1HDYH_XCHgCg3xLha47fA\&count\=1\&query\="tree,stars,nature,sea,weather"| jq -r '.urls.raw') +url=$(curl https://api.unsplash.com/photos/random\?client_id\=sqNEPALHnwDAScQe7uA-l_1HDYH_XCHgCg3xLha47fA\&count\=1\&query\="tree,stars,nature,sea,weather"| jq -r '.[].urls.full') #download the file wget -O $PWD/wallpaper.jpg $url