arch-maride-flavour/flavours/unsplash.flavour/install.sh

12 lines
361 B
Bash
Raw Normal View History

2017-08-10 16:24:51 +00:00
#!/bin/sh
echo "~> Grabbing a random image from unsplash.com..."
2017-08-10 19:24:32 +00:00
mkdir -p /mnt/etc/wallpapers/
2017-09-02 15:25:25 +00:00
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
2017-09-02 13:07:59 +00:00
amf_return=0