Update unsplash.flavour to fulfill unsplashs updates

This commit is contained in:
maride 2017-09-02 18:11:26 +02:00
parent 2d3fbc04d6
commit 8f054d1d2d

View File

@ -5,7 +5,7 @@ echo "~> Grabbing a random image from unsplash.com..."
mkdir -p /mnt/etc/wallpapers/ mkdir -p /mnt/etc/wallpapers/
for tag in {forest,ocean,sky}; do for tag in {forest,ocean,sky}; do
wget https://unsplash.com/photos/$(curl https://unsplash.com/search/photos/$tag | grep -oE "photo=([a-zA-Z0-9_\\-]*)" | shuf -n 1 | sed -e "s/photo=//g")/download -O /mnt/etc/wallpapers/$tag-$(uuidgen).jpg wget $(curl https://unsplash.com/search/photos/$tag | grep -oE 'content="http://images.unsplash.com/photo-([a-zA-Z0-9_\\-]*)' | sed -e 's/content="//g' | shuf -n 1) -O /mnt/etc/wallpapers/$tag-$(uuidgen).jpg
done done
amf_return=0 amf_return=0