Add E17 support for wmtheme

This commit is contained in:
Dylan 2016-04-01 11:41:49 +11:00
parent a1047bd3d1
commit 95bda4827c

View file

@ -836,6 +836,15 @@ getwmtheme () {
;;
'E16') wmtheme="$(awk -F"= " '/theme.name/ {print $2}' "$HOME/.e16/e_config--0.0.cfg")";;
'E17'|'Enlightenment')
# TODO: Reduce the size of this.
if type -p eet >/dev/null 2>&1; then
wmtheme="$(eet -d $HOME/.e/e/config/standard/e.cfg config | awk '/value \"file\" string.*.edj/ {print $4}')"
wmtheme=${wmtheme##*/}
wmtheme=${wmtheme%.*}
fi
;;
esac
wmtheme="${wmtheme//\'}"
}