mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Add support for showing 'MATE' wallpaper
This commit is contained in:
7
fetch
7
fetch
@@ -1460,7 +1460,12 @@ getwallpaper () {
|
||||
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)"
|
||||
case "$XDG_CURRENT_DESKTOP" in
|
||||
"MATE"*) img="$(gsettings get org.mate.background picture-filename 2>/dev/null)" ;;
|
||||
*) img="$(gsettings get org.gnome.desktop.background picture-uri 2>/dev/null)" ;;
|
||||
esac
|
||||
|
||||
# Strip quotes etc from the path.
|
||||
img=${img/'file://'}
|
||||
img=${img//\'}
|
||||
fi
|
||||
|
Reference in New Issue
Block a user