diff --git a/neofetch b/neofetch index 4a185c30..c4c67d34 100755 --- a/neofetch +++ b/neofetch @@ -1397,6 +1397,9 @@ getstyle () { if [ -f "$HOME/.gtkrc-2.0" ]; then gtk2theme=$(grep "^[^#]*$name" "$HOME/.gtkrc-2.0") + elif [ -f "/usr/share/gtk-2.0/gtkrc" ]; then + gtk2theme=$(grep "^[^#]*$name" /usr/share/gtk-2.0/gtkrc) + elif [ -f "/etc/gtk-2.0/gtkrc" ]; then gtk2theme=$(grep "^[^#]*$name" /etc/gtk-2.0/gtkrc) fi @@ -1414,7 +1417,10 @@ getstyle () { gtk3theme="$(gsettings get org.gnome.desktop.interface $gsettings)" gtk3theme=${gtk3theme//\'} - else + elif [ -f "/usr/share/gtk-3.0/settings.ini" ]; then + gtk3theme=$(grep "^[^#]*$name" /usr/share/gtk-3.0/settings.ini) + + elif [ -f "/etc/gtk-3.0/settings.ini" ]; then gtk3theme=$(grep "^[^#]*$name" /etc/gtk-3.0/settings.ini) fi