Info: Added function to display locale

This commit is contained in:
Dylan Araps 2017-03-27 08:51:56 +11:00
parent 464a810f94
commit a6573119f9
2 changed files with 7 additions and 2 deletions

View file

@ -37,6 +37,7 @@ print_info() {
# info "Public IP" public_ip
# info "Users" users
# info "Install Date" install_date
# info "Locale" locale
info line_break
info cols

View file

@ -637,13 +637,13 @@ get_wm() {
case "$os" in
"Mac OS X")
ps_line="$(ps -e | grep -o '[S]pectacle\|[A]methyst\|[k]wm')"
case "$ps_line" in
*"kwm"*) wm="Kwm" ;;
*"Amethyst"*) wm="Amethyst" ;;
*"Spectacle"*) wm="Spectacle" ;;
*) wm="Quartz Compositor" ;;
esac
esac
;;
"Windows")
@ -1993,6 +1993,10 @@ get_install_date() {
install_date="$(convert_time "${install_date[@]}")"
}
get_locale() {
locale="$sys_locale"
}
get_cols() {
if [[ "$color_blocks" == "on" ]]; then
# Convert the width to space chars.