set -e
-path=$(
- find \
- $@ \
- -type f \
- | awk '
- {
- paths[i++] = $0
- }
-
- END {
- srand()
- j = int(i * rand())
- print paths[j]
- }'
-)
-printf "$path\n" >&2
-feh --bg-scale "$path"
+feh --bg-scale "$(find "$DIR_WALLPAPERS" -type f | randline)"