You've already forked neo64fetch
mirror of
https://github.com/neoarz/neo64fetch.git
synced 2026-02-09 06:43:26 +01:00
fix: do actually print entire line
This commit is contained in:
@@ -75,7 +75,7 @@ pub fn get_battery_info() -> String {
|
|||||||
status.push_str("Discharging");
|
status.push_str("Discharging");
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut result = format!("Battery ({}): {}%", device_name, percentage);
|
let mut result = format!("({}) {}%", device_name, percentage);
|
||||||
|
|
||||||
if !external_connected && !is_charging {
|
if !external_connected && !is_charging {
|
||||||
if let Some(time_mins) = avg_time_to_empty {
|
if let Some(time_mins) = avg_time_to_empty {
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ pub fn get_ip_info() -> String {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return format!("Local IP ({}): {}", interface, ip_with_cidr);
|
return format!("({}) {}", interface, ip_with_cidr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,13 +3,13 @@ use std::env;
|
|||||||
pub fn get_locale_info() -> String {
|
pub fn get_locale_info() -> String {
|
||||||
if let Ok(locale) = env::var("LC_ALL") {
|
if let Ok(locale) = env::var("LC_ALL") {
|
||||||
if !locale.is_empty() {
|
if !locale.is_empty() {
|
||||||
return format!("Locale: {}", locale);
|
return locale;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Ok(locale) = env::var("LANG") {
|
if let Ok(locale) = env::var("LANG") {
|
||||||
if !locale.is_empty() {
|
if !locale.is_empty() {
|
||||||
return format!("Locale: {}", locale);
|
return locale;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user