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

12 lines
430 B
Bash
Raw Permalink 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-10-17 08:48:40 +00:00
for tag in {forest,ocean,sky,snow,architecture,technology,stars,hills,nature,fields,trees,night}; 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