This I thought I had changed for the KDE fix but perhaps got reverted somewhere while I was having git problems.

This commit is contained in:
Adam Young
2011-04-22 15:19:55 -07:00
parent 1feb889d6e
commit 0487f7fa24

2
screenfetch-dev Normal file → Executable file
View File

@@ -354,7 +354,7 @@ detectwmtheme () {
'Metacity') if [ "`gconftool-2 -g /apps/metacity/general/theme`" ]; then Win_theme="$(gconftool-2 -g /apps/metacity/general/theme)"; fi ;;
'Xfwm4') if [ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml ]; then Win_theme="$(xfconf-query -c xfwm4 -p /general/theme)"; fi;;
'IceWM') if [ -f $HOME/.icewm/theme ]; then Win_theme="$(awk -F"[\",/]" '!/#/ {print $2}' $HOME/.icewm/theme)"; fi;;
'KWin') if [ -f $HOME/.kde/share/config/plasmarc ]; then Win_theme="$(awk -F"[]" '/^name=/ { getline; print $2 }' ${HOME}/.kde/share/config/plasmarc)"; else Win_theme="Not Present"; fi;;
'KWin') if [ -f $HOME/.kde/share/config/plasmarc ]; then Win_theme="$(awk -F"=" '/^name=/ { getline; print $2 }' ${HOME}/.kde/share/config/plasmarc)"; else Win_theme="Not Present"; fi;;
'Emerald') if [ -f $HOME/.emerald/theme/theme.ini ]; then Win_theme="$(for a in /usr/share/emerald/themes/* $HOME/.emerald/themes/*; do cmp "$HOME/.emerald/theme/theme.ini" "$a/theme.ini" &>/dev/null && basename "$a"; done)"; fi;;
'FVWM') Win_theme="Not Present";;
'DWM') Win_theme="Not Present";;