misc: Remove uppercase()

This commit is contained in:
Dylan Araps 2018-05-21 10:26:46 +10:00
parent c5188a891f
commit 6aba54154c
1 changed files with 1 additions and 14 deletions

View File

@ -1782,7 +1782,6 @@ get_wm_theme() {
esac esac
wm_theme="$(trim_quotes "$wm_theme")" wm_theme="$(trim_quotes "$wm_theme")"
wm_theme="$(uppercase "$wm_theme")"
} }
get_cpu() { get_cpu() {
@ -2614,7 +2613,7 @@ get_style() {
kde_font_size="${kde_font_size/,*}" kde_font_size="${kde_font_size/,*}"
kde_theme="${kde_theme/,*} ${kde_theme/*,} ${kde_font_size}" kde_theme="${kde_theme/,*} ${kde_theme/*,} ${kde_font_size}"
fi fi
kde_theme="$(uppercase "$kde_theme") [KDE], " kde_theme="$kde_theme [KDE], "
else else
err "Theme: KDE config files not found, skipping." err "Theme: KDE config files not found, skipping."
fi fi
@ -2690,10 +2689,6 @@ get_style() {
gtk2_theme="$(trim_quotes "$gtk2_theme")" gtk2_theme="$(trim_quotes "$gtk2_theme")"
gtk3_theme="$(trim_quotes "$gtk3_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. # Toggle visibility of GTK themes.
[[ "$gtk2" == "off" ]] && unset gtk2_theme [[ "$gtk2" == "off" ]] && unset gtk2_theme
[[ "$gtk3" == "off" ]] && unset gtk3_theme [[ "$gtk3" == "off" ]] && unset gtk3_theme
@ -4153,14 +4148,6 @@ strip_sequences() {
printf "%s\n" "$strip" printf "%s\n" "$strip"
} }
uppercase() {
if ((bash_version >= 4)); then
printf "%s" "${1^}"
else
printf "%s" "$1"
fi
}
# COLORS # COLORS
set_colors() { set_colors() {