From 6b95202f3db5593aa381aa548f1c1e10e9538b7f Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Sun, 10 Apr 2022 18:10:13 +0200 Subject: [PATCH] Improve sysinfo format specs --- swayrbar/src/module/sysinfo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swayrbar/src/module/sysinfo.rs b/swayrbar/src/module/sysinfo.rs index 7c6ee3e..255be0c 100644 --- a/swayrbar/src/module/sysinfo.rs +++ b/swayrbar/src/module/sysinfo.rs @@ -133,7 +133,7 @@ impl BarModuleFn for BarModuleSysInfo { config::ModuleConfig { name: NAME.to_owned(), instance, - format: "💻 CPU: {cpu_usage:{:4.1}}% Mem: {mem_usage:{:4.1}}% Load: {load_avg_1:{:4.2}} / {load_avg_5:{:4.2}} / {load_avg_15:{:4.2}}".to_owned(), + format: "💻 CPU: {cpu_usage:{:5.1}}% Mem: {mem_usage:{:5.1}}% Load: {load_avg_1:{:5.2}} / {load_avg_5:{:5.2}} / {load_avg_15:{:5.2}}".to_owned(), html_escape: Some(false), on_click: Some(HashMap::from([ ("Left".to_owned(),