diff --git a/neofetch b/neofetch index dcef123f..2dc8a4ff 100755 --- a/neofetch +++ b/neofetch @@ -816,7 +816,6 @@ getwmtheme () { case "$wm" in 'BudgieWM') wmtheme="$(gsettings get org.gnome.desktop.wm.preferences theme)" ;; 'E16') wmtheme="$(awk -F"= " '/theme.name/ {print $2}' "$HOME/.e16/e_config--0.0.cfg")";; - 'Metacity'*) wmtheme="$(gconftool-2 -g /apps/metacity/general/theme 2>/dev/null)" ;; 'Sawfish') wmtheme="$(awk -F ")" '/\(quote default-frame-style/ {print $2}' "$HOME/.sawfish/custom")" ;; 'Cinnamon' | 'Muffin' | 'Mutter (Muffin)') @@ -834,9 +833,13 @@ getwmtheme () { fi ;; - 'Deepin WM') - type -p gsettings >/dev/null 2>&1 && \ - wmtheme="$(gsettings get com.deepin.wrap.gnome.desktop.wm.preferences theme)" + 'Metacity'*) + if [ "$de" == "Deepin" ]; then + wmtheme="$(gsettings get com.deepin.wrap.gnome.desktop.wm.preferences theme 2>/dev/null)" + + else + wmtheme="$(gconftool-2 -g /apps/metacity/general/theme 2>/dev/null)" + fi ;; 'E17' | 'Enlightenment')