From: Siraaj Khandkar Date: Tue, 18 Jan 2022 20:15:30 +0000 (-0500) Subject: Add wallpaper_fav script X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=11b7df8d9c6623d857070d7577b559161b43a806;p=khome.git Add wallpaper_fav script --- diff --git a/home/bin/wallpaper_fav b/home/bin/wallpaper_fav new file mode 100755 index 0000000..e2de403 --- /dev/null +++ b/home/bin/wallpaper_fav @@ -0,0 +1,8 @@ +#! /bin/sh + +set -e + +FAVS_FILE=~/fav-wallpapers.txt + +awk 'NR == 2 {sub("^" $1 " +" $2 " +" $3 " +", ""); print}' ~/.fehbg | xargs sha256sum >> "$FAVS_FILE" +sort -u "$FAVS_FILE" | sponge "$FAVS_FILE"