Add Unsplash as wallpaper source

This commit is contained in:
maride
2017-08-10 18:24:51 +02:00
parent e2d707ad80
commit 501a8cd164
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
#!/bin/sh
echo "~> Grabbing a random image from unsplash.com..."
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/home/*/background.jpg