From f9d881e9051a266cc113565213a89165b3ca696a Mon Sep 17 00:00:00 2001 From: dylan araps Date: Tue, 10 Oct 2017 08:29:55 +1100 Subject: [PATCH] image: Fix bug with getting wallpaper from feh. --- neofetch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 0ce2959d..2fbd6898 100755 --- a/neofetch +++ b/neofetch @@ -2492,7 +2492,9 @@ get_wallpaper() { *) if type -p feh >/dev/null && [[ -f "${HOME}/.fehbg" ]]; then - image="$(awk -F\' '/feh/ {printf $2}' "${HOME}/.fehbg")" + image="$(< "${HOME}/.fehbg")" + image="${image#*\'}" + image="${image%\'*}" elif type -p nitrogen >/dev/null; then image="$(awk -F'=' '/file/ {printf $2;exit;}' \