Change location of i3/unsplash wallpapers to /usr/share instead of /etc

This commit is contained in:
mkuegler
2019-03-03 19:04:03 +01:00
parent 858ca5d3ab
commit 947d2b72f0
2 changed files with 3 additions and 3 deletions

View File

@@ -2,10 +2,10 @@
echo "~> Grabbing a random image from unsplash.com..."
mkdir -p /mnt/etc/wallpapers/
mkdir -p /mnt/usr/share/wallpapers/
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
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/usr/share/wallpapers/$tag-$(uuidgen).jpg
done
amf_return=0