From: Siraaj Khandkar Date: Sun, 23 Jan 2022 00:52:29 +0000 (-0500) Subject: Add wallpapers preview script X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=31df30211ce32c341734cd47300d2ee223de9154;p=khome.git Add wallpapers preview script --- diff --git a/home/bin/wallpapers_preview b/home/bin/wallpapers_preview new file mode 100755 index 0000000..b5672d8 --- /dev/null +++ b/home/bin/wallpapers_preview @@ -0,0 +1,10 @@ +#! /bin/sh + +case "$1" in + '') dir="$DIR_WALLPAPERS";; + *) dir="$1";; +esac + +# XXX Apparently injecting a filepath with {} is bad: https://github.com/koalaman/shellcheck/wiki/SC2156 +#find "$dir" -type f -exec bash -c 'feh --bg-scale "{}"; read' \; +find "$dir" -type f -exec bash -c 'feh --bg-scale "$1"; read' shell '{}' \;