moved /usr/share to before /etc in gtk theme
This commit is contained in:
parent
0fca1ff3c7
commit
151eb544f4
12
neofetch
12
neofetch
|
@ -1397,11 +1397,11 @@ getstyle () {
|
||||||
if [ -f "$HOME/.gtkrc-2.0" ]; then
|
if [ -f "$HOME/.gtkrc-2.0" ]; then
|
||||||
gtk2theme=$(grep "^[^#]*$name" "$HOME/.gtkrc-2.0")
|
gtk2theme=$(grep "^[^#]*$name" "$HOME/.gtkrc-2.0")
|
||||||
|
|
||||||
elif [ -f "/etc/gtk-2.0/gtkrc" ]; then
|
|
||||||
gtk2theme=$(grep "^[^#]*$name" /etc/gtk-2.0/gtkrc)
|
|
||||||
|
|
||||||
elif [ -f "/usr/share/gtk-2.0/gtkrc" ]; then
|
elif [ -f "/usr/share/gtk-2.0/gtkrc" ]; then
|
||||||
gtk2theme=$(grep "^[^#]*$name" /usr/share/gtk-2.0/gtkrc)
|
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
|
fi
|
||||||
|
|
||||||
gtk2theme=${gtk2theme/${name}*=}
|
gtk2theme=${gtk2theme/${name}*=}
|
||||||
|
@ -1417,11 +1417,11 @@ getstyle () {
|
||||||
gtk3theme="$(gsettings get org.gnome.desktop.interface $gsettings)"
|
gtk3theme="$(gsettings get org.gnome.desktop.interface $gsettings)"
|
||||||
gtk3theme=${gtk3theme//\'}
|
gtk3theme=${gtk3theme//\'}
|
||||||
|
|
||||||
elif [ -f "/etc/gtk-3.0/settings.ini" ]; then
|
|
||||||
gtk3theme=$(grep "^[^#]*$name" /etc/gtk-3.0/settings.ini)
|
|
||||||
|
|
||||||
elif [ -f "/usr/share/gtk-3.0/settings.ini" ]; then
|
elif [ -f "/usr/share/gtk-3.0/settings.ini" ]; then
|
||||||
gtk3theme=$(grep "^[^#]*$name" /usr/share/gtk-3.0/settings.ini)
|
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
|
fi
|
||||||
|
|
||||||
gtk3theme=${gtk3theme/${name}*=}
|
gtk3theme=${gtk3theme/${name}*=}
|
||||||
|
|
Reference in New Issue