From 5996edbc9d7eb24de2615ab5d21ba67cdc78979a Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 24 Jan 2016 11:03:29 +1100 Subject: [PATCH] getwallpaper: Added gsettings support --- fetch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fetch b/fetch index 2298190b..15490ca1 100755 --- a/fetch +++ b/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 ;;