get wallpaper for Plasma desktop

This commit is contained in:
Kid 2019-12-18 18:47:31 +08:00
parent 8de31f074a
commit 07c3233d69
1 changed files with 21 additions and 17 deletions

View File

@ -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")"
@ -5777,23 +5781,23 @@ EOF
"Carbs"*) "Carbs"*)
set_colors 4 5 4 4 4 4 set_colors 4 5 4 4 4 4
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'
${c2} .......... ${c2} ..........
..,;:ccccccc:;'.. ..,;:ccccccc:;'..
..,clllc:;;;;;:cllc,. ..,clllc:;;;;;:cllc,.
.,cllc,... ..';;'. .,cllc,... ..';;'.
.;lol;.. .. .;lol;.. ..
.,lol;. .,lol;.
.coo:. .coo:.
.'lol,. .'lol,.
.,lol,. .,lol,.
.,lol,. .,lol,.
'col;. 'col;.
.:ooc'. .:ooc'.
.'col:. .'col:.
.'cllc'.. .''. .'cllc'.. .''.
..:lolc,'.......',cll,. ..:lolc,'.......',cll,.
..;cllllccccclllc;'. ..;cllllccccclllc;'.
...',;;;;;;,,... ...',;;;;;;,,...
..... .....
EOF EOF
;; ;;