From a6573119f95db044f072adca0a8ff163d03c6f64 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 27 Mar 2017 08:51:56 +1100 Subject: [PATCH 1/2] Info: Added function to display locale --- config/config | 1 + neofetch | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/config b/config/config index d1621962..92794f63 100644 --- a/config/config +++ b/config/config @@ -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 diff --git a/neofetch b/neofetch index a3690aa9..9fab49d8 100755 --- a/neofetch +++ b/neofetch @@ -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. From 8deb31b3d63423daed7d1dd20f23ec699ca324a6 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 6 Apr 2017 09:28:11 +1000 Subject: [PATCH 2/2] General: Add warning about glibc to get_locale --- config/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config b/config/config index 92794f63..7c86ae84 100644 --- a/config/config +++ b/config/config @@ -37,7 +37,7 @@ print_info() { # info "Public IP" public_ip # info "Users" users # info "Install Date" install_date - # info "Locale" locale + # info "Locale" locale # This only works on glibc systems. info line_break info cols