From 2d3fbc04d6d2e170e8e8390d45aa09d8e6fae400 Mon Sep 17 00:00:00 2001 From: maride Date: Sat, 2 Sep 2017 17:25:25 +0200 Subject: [PATCH] Add more random wallpapers --- flavours/unsplash.flavour/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flavours/unsplash.flavour/install.sh b/flavours/unsplash.flavour/install.sh index 1ca54bd..a7ef923 100755 --- a/flavours/unsplash.flavour/install.sh +++ b/flavours/unsplash.flavour/install.sh @@ -4,6 +4,8 @@ echo "~> Grabbing a random image from unsplash.com..." mkdir -p /mnt/etc/wallpapers/ -wget https://unsplash.com/photos/$(curl https://unsplash.com/search/photos/forest | grep -oE "photo=([a-zA-Z0-9_\\-]*)" | shuf -n 1 | sed -e "s/photo=//g")/download -O /mnt/etc/wallpapers/forest.jpg +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 +done amf_return=0