From: Siraaj Khandkar Date: Wed, 19 Jan 2022 15:03:37 +0000 (-0500) Subject: Make a wallpaper setter/selector from favs X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=e97f28eed6c3afd229ff1a700495891e6e8a3eaa;p=khome.git Make a wallpaper setter/selector from favs --- diff --git a/home/bin/wallpaper_set b/home/bin/wallpaper_set new file mode 100755 index 0000000..7832031 --- /dev/null +++ b/home/bin/wallpaper_set @@ -0,0 +1,7 @@ +#! /bin/sh + +set -e + +FAVS_FILE=~/fav-wallpapers.txt # TODO Centralize in lib/vars + +khomenu -l 50 < "$FAVS_FILE" | awk '{sub("^" $1 " +", ""); print}' | xargs -I% feh --bg-scale '%'