From 64466601556d88408e1570ae74bc1eaf379e61b5 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 1 Apr 2016 11:35:26 +1100 Subject: [PATCH] Add support for more WM themes --- neofetch | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index c95dbb18..65ea85b9 100755 --- a/neofetch +++ b/neofetch @@ -816,9 +816,18 @@ getwmtheme () { 'BudgieWM') wmtheme="$(gsettings get org.gnome.desktop.wm.preferences theme)" ;; 'Cinnamon' | 'Muffin') - de_theme="$(gsettings get org.cinnamon.theme name)" - win_theme="$(gsettings get org.cinnamon.desktop.wm.preferences theme)" - Win_theme="${de_theme} (${win_theme})" + detheme="$(gsettings get org.cinnamon.theme name)" + wmtheme="$(gsettings get org.cinnamon.desktop.wm.preferences theme)" + wmtheme="${detheme} (${wmtheme})" + ;; + + 'Compiz' | 'Mutter'* | 'GNOME Shell' | 'Gala') + if type -p gsettings >/dev/null 2>&1; then + wmtheme="$(gsettings get org.gnome.desktop.wm.preferences theme)" + + elif type -p gconftool-2 >/dev/null 2>&1; then + wmtheme="$(gconftool-2 -g /apps/metacity/general/theme)" + fi ;; esac wmtheme="${wmtheme//\'}"