From 68c5fdb37e1d57a471a4fe2c341bb099995b6057 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 1 Apr 2016 09:40:28 +1100 Subject: [PATCH] Add wildcards to dix wm matching --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 64679fcf..21a50ea1 100755 --- a/neofetch +++ b/neofetch @@ -816,7 +816,7 @@ getwmtheme () { '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")";; 'Marco') wmtheme="$(gsettings get org.mate.Marco.general theme)" ;; - 'Metacity') wmtheme="$(gconftool-2 -g /apps/metacity/general/theme 2>/dev/null)" ;; + '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') @@ -853,7 +853,7 @@ getwmtheme () { wmtheme="$(awk -F "/" '/styleFile/ {print $NF}' "$HOME/.fluxbox/init")" ;; - 'IceWM') + 'IceWM'*) [ -f $HOME/.icewm/theme ] && \ wmtheme="$(awk -F "[\",/]" '!/#/ {print $2}' "$HOME/.icewm/theme")" ;;