Add 'setroot' wallpaper fetching

This commit is contained in:
SolitudeSF 2018-04-20 00:47:15 +03:00
parent 1b71699353
commit aa7ec8b529
No known key found for this signature in database
GPG Key ID: 789B06817C385387
1 changed files with 5 additions and 0 deletions

View File

@ -2802,6 +2802,11 @@ END
if type -p feh >/dev/null && [[ -f "${HOME}/.fehbg" ]]; then
image="$(awk -F\' '/feh/ {printf $(NF-1)}' "${HOME}/.fehbg")"
elif type -p setroot >/dev/null && \
[[ -f "${XDG_CONFIG_HOME}/setroot/.setroot-restore" ]]; then
image="$(awk -F\' '/setroot/ {printf $(NF-1)}' \
"${XDG_CONFIG_HOME}/setroot/.setroot-restore")"
elif type -p nitrogen >/dev/null; then
image="$(awk -F'=' '/file/ {printf $2;exit;}' \
"${XDG_CONFIG_HOME}/nitrogen/bg-saved.cfg")"