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

12 lines
392 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/
for tag in {forest,ocean,sky,snow,architecture,technology}; do
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
2017-09-02 15:25:25 +00:00
done
2017-09-02 13:07:59 +00:00
amf_return=0