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

10 lines
311 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-08-10 20:17:53 +00:00
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
2017-09-02 13:07:59 +00:00
amf_return=0