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

@ -5,4 +5,5 @@ pacstrap /mnt i3 feh xcompmgr dmenu acpi
echo "~> Creating .xinitrc" echo "~> Creating .xinitrc"
echo "xcompmgr -c &" > /mnt/home/*/.xinitrc echo "xcompmgr -c &" > /mnt/home/*/.xinitrc
echo "feh --bg-fill ~/background.jpg" >> /mnt/home/*/.xinitrc
echo "exec i3" >> /mnt/home/*/.xinitrc echo "exec i3" >> /mnt/home/*/.xinitrc

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