make some changes
This commit is contained in:
parent
6f1ae617ff
commit
836197fc2e
1 changed files with 3 additions and 7 deletions
10
neofetch
10
neofetch
|
@ -2684,12 +2684,8 @@ get_style() {
|
||||||
# Check for general GTK2 Theme.
|
# Check for general GTK2 Theme.
|
||||||
if [[ -z "$gtk2_theme" ]]; then
|
if [[ -z "$gtk2_theme" ]]; then
|
||||||
if [[ -n "${GTK2_RC_FILES}" ]]; then
|
if [[ -n "${GTK2_RC_FILES}" ]]; then
|
||||||
for gtkrc in ${GTK2_RC_FILES//:/ }; do
|
IFS=: read -ra rc_files <<< "$GTK2_RC_FILES"
|
||||||
_gtk2_theme="$(grep "^[^#]*${name}" "${gtkrc}")"
|
gtk2_theme="$(grep "^[^#]*${name}" "${rc_files[@]}")"
|
||||||
[[ -n "${_gtk2_theme}" ]] && gtk2_theme="${_gtk2_theme}"
|
|
||||||
done
|
|
||||||
unset _gtk2_theme
|
|
||||||
|
|
||||||
elif [[ -f "${HOME}/.gtkrc-2.0" ]]; then
|
elif [[ -f "${HOME}/.gtkrc-2.0" ]]; then
|
||||||
gtk2_theme="$(grep "^[^#]*${name}" "${HOME}/.gtkrc-2.0")"
|
gtk2_theme="$(grep "^[^#]*${name}" "${HOME}/.gtkrc-2.0")"
|
||||||
|
|
||||||
|
@ -2701,7 +2697,7 @@ get_style() {
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gtk2_theme="${gtk2_theme/${name}*=}"
|
gtk2_theme="${gtk2_theme/*${name}*=}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for general GTK3 Theme.
|
# Check for general GTK3 Theme.
|
||||||
|
|
Loading…
Reference in a new issue