fix: do actually print entire line

This commit is contained in:
neoarz
2026-01-06 21:14:39 -05:00
parent 09e2a40688
commit 20868595a8
3 changed files with 4 additions and 4 deletions

View File

@@ -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 {

View File

@@ -44,7 +44,7 @@ pub fn get_ip_info() -> String {
} }
} }
return format!("Local IP ({}): {}", interface, ip_with_cidr); return format!("({}) {}", interface, ip_with_cidr);
} }
} }
} }

View File

@@ -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;
} }
} }