Unverified Commit 810605d7 authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #955 from SolitudeSF/setroot-wallpaper

Add 'setroot' wallpaper fetching
parents 1b716993 aa7ec8b5
...@@ -2802,6 +2802,11 @@ END ...@@ -2802,6 +2802,11 @@ END
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")"
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 elif type -p nitrogen >/dev/null; then
image="$(awk -F'=' '/file/ {printf $2;exit;}' \ image="$(awk -F'=' '/file/ {printf $2;exit;}' \
"${XDG_CONFIG_HOME}/nitrogen/bg-saved.cfg")" "${XDG_CONFIG_HOME}/nitrogen/bg-saved.cfg")"
......
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