Add support for more WM themes

This commit is contained in:
Dylan 2016-04-01 11:35:26 +11:00
parent 3c22c86e38
commit 6446660155
1 changed files with 12 additions and 3 deletions

View File

@ -816,9 +816,18 @@ getwmtheme () {
'BudgieWM') wmtheme="$(gsettings get org.gnome.desktop.wm.preferences theme)" ;; 'BudgieWM') wmtheme="$(gsettings get org.gnome.desktop.wm.preferences theme)" ;;
'Cinnamon' | 'Muffin') 'Cinnamon' | 'Muffin')
de_theme="$(gsettings get org.cinnamon.theme name)" detheme="$(gsettings get org.cinnamon.theme name)"
win_theme="$(gsettings get org.cinnamon.desktop.wm.preferences theme)" wmtheme="$(gsettings get org.cinnamon.desktop.wm.preferences theme)"
Win_theme="${de_theme} (${win_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 esac
wmtheme="${wmtheme//\'}" wmtheme="${wmtheme//\'}"