get wallpaper for Plasma desktop
This commit is contained in:
parent
8de31f074a
commit
07c3233d69
4
neofetch
4
neofetch
|
@ -3741,6 +3741,10 @@ END
|
||||||
image="$(decode_url "$image")"
|
image="$(decode_url "$image")"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"Plasma"*)
|
||||||
|
image="$(cat ${HOME}/.config/plasma-org.kde.plasma.desktop-appletsrc | grep --fixed-strings --after-context 1 "[Wallpaper][org.kde.image][General]" | grep --extended-regexp --only-matching "file.+")"
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
if type -p feh >/dev/null && [[ -f "${HOME}/.fehbg" ]]; then
|
if type -p feh >/dev/null && [[ -f "${HOME}/.fehbg" ]]; then
|
||||||
image="$(awk -F\' '/feh/ {printf $(NF-1)}' "${HOME}/.fehbg")"
|
image="$(awk -F\' '/feh/ {printf $(NF-1)}' "${HOME}/.fehbg")"
|
||||||
|
|
Reference in New Issue