WizardKit/.linux_items/include/airootfs/etc/skel/.update_wallpaper
2Shirt aac9badc4f Reoragnized .linux_items/include
* Removed include/iso items since they've been integrated into the new scripts
* Moved include/live/* to include/ since there's only one "include" folder now
2017-12-27 16:40:34 -07:00

21 lines
468 B
Bash
Executable file

#!/bin/bash
BOOT_PATH="/run/archiso/bootmnt/arch/"
BURNED_IN="/usr/share/wallpaper/burned.in"
WALLPAPER="$HOME/.wallpaper.png"
function link_wall() {
sudo rm "$WALLPAPER"
sudo ln -s "$1" "$WALLPAPER"
}
# Check for wallpaper
## Checks BOOT_PATH and uses the BURNED_IN file if nothing is found
for f in "$BOOT_PATH"/{Arch,arch}.{jpg,png} "$BURNED_IN"; do
if [[ -f "$f" ]]; then
link_wall "$f"
break
fi
done
feh --bg-fill "$WALLPAPER"