diff --git a/fetch b/fetch index 339a51dd..30e23b9d 100755 --- a/fetch +++ b/fetch @@ -962,7 +962,11 @@ getvisualstyle () { getwallpaper () { case "$os" in "Linux" | *"BSD") - img="$(awk -F\' '/feh/ {printf $2}' $HOME/.fehbg)" + if type -p feh >/dev/null 2>&1; then + img="$(awk -F\' '/feh/ {printf $2}' "$HOME/.fehbg")" + elif type -p nitrogen >/dev/null 2>&1; then + img="$(awk -F'=' '/file/ {printf $2}' "$HOME/.config/nitrogen/bg-saved.cfg")" + fi ;; "Mac OS X")