3595147f6fec489d2da82092e702587b81732173
11 q | Q
) echo 'CMD_QUIT';;
12 h | H
) echo 'CMD_MOVE_BACK';;
13 l | L
) echo 'CMD_MOVE_FORWARD';;
14 f | F
) echo 'CMD_FAVORITE';;
15 *) echo 'CMD_UKNOWN';;
20 local -r root_dir
="$1"
24 for path
in $
(find "$root_dir" -type f
)
26 if file "$path" |
grep 'image data' > /dev
/null
29 # \r jumps to the beginning of the line:
30 printf '\rFound %d images.' "$n" >&2
42 for ((i
=1; i
<=n
; i
++))
46 printf '%d of %d : %s\n' "$i" "$n" "$path"
47 feh
--bg-scale "$path"
49 case "$(read_command)" in
54 # One step further back than needed,
55 # to correct for the upcoming i++.
57 if [[ i
-lt 0 ]]; then
76 '') root_dir
="$DIR_WALLPAPERS";;
80 paths_find
"$root_dir"
This page took 0.081579 seconds and 3 git commands to generate.