Theme: Fixed KDE theme not working
This commit is contained in:
parent
cf7cc40437
commit
9f76818850
9
neofetch
9
neofetch
|
@ -1335,13 +1335,15 @@ get_style() {
|
||||||
if [[ -f "${kde_config_dir}/share/config/kdeglobals" ]]; then
|
if [[ -f "${kde_config_dir}/share/config/kdeglobals" ]]; then
|
||||||
kde_config_file="${kde_config_dir}/share/config/kdeglobals"
|
kde_config_file="${kde_config_dir}/share/config/kdeglobals"
|
||||||
|
|
||||||
theme="$(grep "^[^#]*$kde" "$kde_config_file")"
|
theme="$(grep "^[^#]*${kde}" "$kde_config_file")"
|
||||||
theme="${theme/${kde}*=}"
|
theme="${theme/${kde}*=}"
|
||||||
theme="$(uppercase "$theme")"
|
theme="$(uppercase "$theme")"
|
||||||
|
|
||||||
gtk_shorthand="on"
|
gtk_shorthand="on"
|
||||||
return
|
else
|
||||||
|
err "Theme: KDE config files not found, skipping."
|
||||||
fi
|
fi
|
||||||
|
return
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*"Cinnamon"*)
|
*"Cinnamon"*)
|
||||||
|
@ -2846,6 +2848,9 @@ kde_config_dir() {
|
||||||
|
|
||||||
elif type -p kde-config >/dev/null 2>&1; then
|
elif type -p kde-config >/dev/null 2>&1; then
|
||||||
kde_config_dir="$(kde-config --localprefix)"
|
kde_config_dir="$(kde-config --localprefix)"
|
||||||
|
|
||||||
|
elif [[ -d "${HOME}/.kde4" ]]; then
|
||||||
|
kde_config_dir="${HOME}/.kde4"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue