misc: Remove uppercase()
This commit is contained in:
parent
c5188a891f
commit
6aba54154c
1 changed files with 1 additions and 14 deletions
15
neofetch
15
neofetch
|
@ -1782,7 +1782,6 @@ get_wm_theme() {
|
|||
esac
|
||||
|
||||
wm_theme="$(trim_quotes "$wm_theme")"
|
||||
wm_theme="$(uppercase "$wm_theme")"
|
||||
}
|
||||
|
||||
get_cpu() {
|
||||
|
@ -2614,7 +2613,7 @@ get_style() {
|
|||
kde_font_size="${kde_font_size/,*}"
|
||||
kde_theme="${kde_theme/,*} ${kde_theme/*,} ${kde_font_size}"
|
||||
fi
|
||||
kde_theme="$(uppercase "$kde_theme") [KDE], "
|
||||
kde_theme="$kde_theme [KDE], "
|
||||
else
|
||||
err "Theme: KDE config files not found, skipping."
|
||||
fi
|
||||
|
@ -2690,10 +2689,6 @@ get_style() {
|
|||
gtk2_theme="$(trim_quotes "$gtk2_theme")"
|
||||
gtk3_theme="$(trim_quotes "$gtk3_theme")"
|
||||
|
||||
# Uppercase the first letter of each GTK theme.
|
||||
gtk2_theme="$(uppercase "$gtk2_theme")"
|
||||
gtk3_theme="$(uppercase "$gtk3_theme")"
|
||||
|
||||
# Toggle visibility of GTK themes.
|
||||
[[ "$gtk2" == "off" ]] && unset gtk2_theme
|
||||
[[ "$gtk3" == "off" ]] && unset gtk3_theme
|
||||
|
@ -4153,14 +4148,6 @@ strip_sequences() {
|
|||
printf "%s\n" "$strip"
|
||||
}
|
||||
|
||||
uppercase() {
|
||||
if ((bash_version >= 4)); then
|
||||
printf "%s" "${1^}"
|
||||
else
|
||||
printf "%s" "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
# COLORS
|
||||
|
||||
set_colors() {
|
||||
|
|
Loading…
Reference in a new issue