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
|
2017-09-02 16:11:26 +00:00
|
|
|
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
|