arch-maride-flavour/flavours/unsplash.flavour/install.sh
2017-09-02 15:07:59 +02:00

10 lines
311 B
Bash
Executable File

#!/bin/sh
echo "~> Grabbing a random image from unsplash.com..."
mkdir -p /mnt/etc/wallpapers/
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
amf_return=0