You've already forked neo64fetch
mirror of
https://github.com/neoarz/neo64fetch.git
synced 2026-02-09 06:43:26 +01:00
fix: formatting for display and battery
This commit is contained in:
@@ -34,7 +34,7 @@ struct Stats {
|
||||
swap: String,
|
||||
storage: String,
|
||||
ip: String,
|
||||
battery: String,
|
||||
battery: (String, String), // (device_name, info)
|
||||
locale: String,
|
||||
|
||||
// Extra fields
|
||||
@@ -108,7 +108,7 @@ fn main() {
|
||||
println!("{}", colors::info("Disk (/)", &stats.storage));
|
||||
// Don't wanna show print this lolol
|
||||
// println!("{}", colors::info("Local IP", &stats.ip));
|
||||
println!("{}", colors::info("Battery", &stats.battery));
|
||||
println!("{}", colors::info(&format!("Battery {}", stats.battery.0), &stats.battery.1));
|
||||
println!("{}", colors::info("Locale", &stats.locale));
|
||||
|
||||
// color blocks
|
||||
|
||||
Reference in New Issue
Block a user