wallpaper: Add support for pywal.

This commit is contained in:
Dylan Araps 2018-04-14 08:13:36 +10:00
parent c80ace7684
commit f7cf1073c6
1 changed files with 4 additions and 1 deletions

View File

@ -2757,7 +2757,10 @@ END
;;
*)
if type -p feh >/dev/null && [[ -f "${HOME}/.fehbg" ]]; then
if [[ -f "${HOME}/.cache/wal/wal" ]]; then
image="$(< "${HOME}/.cache/wal/wal")"
elif type -p feh >/dev/null && [[ -f "${HOME}/.fehbg" ]]; then
image="$(awk -F\' '/feh/ {printf $(NF-1)}' "${HOME}/.fehbg")"
elif type -p nitrogen >/dev/null; then