Merge pull request #955 from SolitudeSF/setroot-wallpaper

Add 'setroot' wallpaper fetching
This commit is contained in:
Dylan Araps 2018-04-21 06:58:56 +00:00 committed by GitHub
commit 810605d75e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")"