mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 04:32:12 +00:00
Info: Added function to display locale
This commit is contained in:
@@ -37,6 +37,7 @@ print_info() {
|
|||||||
# info "Public IP" public_ip
|
# info "Public IP" public_ip
|
||||||
# info "Users" users
|
# info "Users" users
|
||||||
# info "Install Date" install_date
|
# info "Install Date" install_date
|
||||||
|
# info "Locale" locale
|
||||||
|
|
||||||
info line_break
|
info line_break
|
||||||
info cols
|
info cols
|
||||||
|
|||||||
8
neofetch
8
neofetch
@@ -637,13 +637,13 @@ get_wm() {
|
|||||||
case "$os" in
|
case "$os" in
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
ps_line="$(ps -e | grep -o '[S]pectacle\|[A]methyst\|[k]wm')"
|
ps_line="$(ps -e | grep -o '[S]pectacle\|[A]methyst\|[k]wm')"
|
||||||
|
|
||||||
case "$ps_line" in
|
case "$ps_line" in
|
||||||
*"kwm"*) wm="Kwm" ;;
|
*"kwm"*) wm="Kwm" ;;
|
||||||
*"Amethyst"*) wm="Amethyst" ;;
|
*"Amethyst"*) wm="Amethyst" ;;
|
||||||
*"Spectacle"*) wm="Spectacle" ;;
|
*"Spectacle"*) wm="Spectacle" ;;
|
||||||
*) wm="Quartz Compositor" ;;
|
*) wm="Quartz Compositor" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
@@ -1993,6 +1993,10 @@ get_install_date() {
|
|||||||
install_date="$(convert_time "${install_date[@]}")"
|
install_date="$(convert_time "${install_date[@]}")"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_locale() {
|
||||||
|
locale="$sys_locale"
|
||||||
|
}
|
||||||
|
|
||||||
get_cols() {
|
get_cols() {
|
||||||
if [[ "$color_blocks" == "on" ]]; then
|
if [[ "$color_blocks" == "on" ]]; then
|
||||||
# Convert the width to space chars.
|
# Convert the width to space chars.
|
||||||
|
|||||||
Reference in New Issue
Block a user