Change location of i3/unsplash wallpapers to /usr/share instead of /etc
This commit is contained in:
parent
c839b6bbf3
commit
4eb88c5724
@ -12,7 +12,7 @@ fi
|
||||
|
||||
echo "~> Creating .xinitrc"
|
||||
echo "compton -CGb" > $path/.xinitrc
|
||||
echo "feh --bg-fill /etc/wallpapers/\$(ls /etc/wallpapers/ | shuf -n 1)" >> $path/.xinitrc
|
||||
echo "feh --bg-fill /usr/share/wallpapers\$(ls /usr/share/wallpapers | shuf -n 1)" >> $path/.xinitrc
|
||||
echo "exec i3" >> $path/.xinitrc
|
||||
|
||||
amf_return=0
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user