From 9dd246d4d970a7d16d25558f9c28f23cca591f54 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Mon, 22 Apr 2024 12:08:09 +0200 Subject: [PATCH] waybar: add CPU bar graph --- .config/waybar/config.cgt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/waybar/config.cgt b/.config/waybar/config.cgt index f283ff5..4c1dabf 100644 --- a/.config/waybar/config.cgt +++ b/.config/waybar/config.cgt @@ -26,7 +26,10 @@ :tray {:spacing 10} :clock {:tooltip-format "{:%Y %B}\n{calendar}" :format-alt "{:%Y-%m-%d}"} - :cpu {:format "{usage}% "} + :cpu {:format (.. (faccumulate [s "" i 0 (- (cg.opt.system :nproc) 1)] + (.. s "{icon" i "}")) " {usage}% ") + :format-icons ["▁" "▂" "▃" "▄" "▅" "▆" "▇" "█"] + :interval 2} :memory {:format "{}% "} :temperature {:hwmon-path "<% opt.cpu_temp_hwmon %>" :critical-threshold 80