getwallpaper: Added gsettings support
This commit is contained in:
parent
45b72832bb
commit
5996edbc9d
1 changed files with 4 additions and 0 deletions
4
fetch
4
fetch
|
@ -981,6 +981,10 @@ getwallpaper () {
|
|||
img="$(awk -F\' '/feh/ {printf $2}' "$HOME/.fehbg")"
|
||||
elif type -p nitrogen >/dev/null 2>&1; then
|
||||
img="$(awk -F'=' '/file/ {printf $2}' "$HOME/.config/nitrogen/bg-saved.cfg")"
|
||||
elif type -p gsettings >/dev/null 2>&1; then
|
||||
img="$(gsettings get org.gnome.desktop.background picture-uri 2>/dev/null)"
|
||||
img=${img/'file://'}
|
||||
img=${img//\'}
|
||||
fi
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue