From 1ce7a904d1e1c258de1006e88c39fb5921056749 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 1 Apr 2016 14:42:38 +1100 Subject: [PATCH] Wmtheme add support for more window managers --- neofetch | 37 +++++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/neofetch b/neofetch index bf5c8106..a198b31f 100755 --- a/neofetch +++ b/neofetch @@ -814,6 +814,10 @@ getwmtheme () { case "$wm" in '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)" ;; + 'Sawfish') wmtheme="$(awk -F ")" '/\(quote default-frame-style/ {print $2}' "$HOME/.sawfish/custom")" ;; 'Cinnamon' | 'Muffin') detheme="$(gsettings get org.cinnamon.theme name)" @@ -835,8 +839,6 @@ getwmtheme () { wmtheme="$(gsettings get com.deepin.wrap.gnome.desktop.wm.preferences theme)" ;; - '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 @@ -846,6 +848,31 @@ getwmtheme () { fi ;; + 'Fluxbox') + [ -f $HOME/.fluxbox/init ] && \ + wmtheme="$(awk -F "/" '/styleFile/ {print $NF}' "$HOME/.fluxbox/init")" + ;; + + 'IceWM') + [ -f $HOME/.icewm/theme ] && \ + wmtheme="$(awk -F "[\",/]" '!/#/ {print $2}' "$HOME/.icewm/theme")" + ;; + + 'Openbox') + [ -f "${HOME}/.config/openbox/rc.xml" ] && \ + wmtheme="$(awk -F "[<,>]" '/