From 95bda4827cfa0295780d954adbe9107f181dc8e6 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 1 Apr 2016 11:41:49 +1100 Subject: [PATCH] Add E17 support for wmtheme --- neofetch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/neofetch b/neofetch index ec7e38da..8c35168e 100755 --- a/neofetch +++ b/neofetch @@ -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//\'}" }