7 current_wallpaper_file
=$
(
11 # XXX Assume feh wrote a N>4-field command line, like:
12 # feh --no-fehbg --bg-scale $file
13 sub("^" $1 " +" $2 " +" $3 " +", "")
15 # XXX Assume feh wrote a N<4-field command line, like:
16 # feh --bg-scale $file
17 sub("^" $1 " +" $2 " +", "")
19 printf "[error] Unexpected number of fields in ~/.fehbg command: %s\n" $0 > "/dev/stderr"
27 |
xargs # Unquote the filename, which feh puts in single quotes.
30 current_wallpaper_file
="$1"
33 sha256sum
"$current_wallpaper_file" >> "$FILE_WALLPAPER_FAVS"
34 sort -u "$FILE_WALLPAPER_FAVS" | sponge
"$FILE_WALLPAPER_FAVS"
This page took 0.089472 seconds and 4 git commands to generate.