Unverified Commit 8ef15466 authored by dylan's avatar dylan Committed by GitHub

Merge pull request #1372 from kidonng/plasma-wallpaper

Get wallpaper for Plasma desktop
parents b9ade822 ce39f1bd
...@@ -3746,6 +3746,11 @@ END ...@@ -3746,6 +3746,11 @@ END
image="$(decode_url "$image")" image="$(decode_url "$image")"
;; ;;
"Plasma"*)
image="${XDG_CONFIG_HOME}/plasmarc"
image="$(awk -F '=' '$1 == "usersWallpapers" { print $2 }' "$image")"
;;
*) *)
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")"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment