mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-04 14:28:03 +00:00
image: Fix bug with getting wallpaper from feh.
This commit is contained in:
4
neofetch
4
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;}' \
|
||||
|
||||
Reference in New Issue
Block a user