Add wallpapers preview script
[khome.git] / home / bin / wallpapers_preview
1 #! /bin/sh
2
3 case "$1" in
4 '') dir="$DIR_WALLPAPERS";;
5 *) dir="$1";;
6 esac
7
8 # XXX Apparently injecting a filepath with {} is bad: https://github.com/koalaman/shellcheck/wiki/SC2156
9 #find "$dir" -type f -exec bash -c 'feh --bg-scale "{}"; read' \;
10 find "$dir" -type f -exec bash -c 'feh --bg-scale "$1"; read' shell '{}' \;
This page took 0.064704 seconds and 4 git commands to generate.