waybar: add CPU bar graph

This commit is contained in:
LordMZTE 2024-04-22 12:08:09 +02:00
parent 080c16564f
commit 9dd246d4d9
Signed by: LordMZTE
GPG Key ID: B64802DC33A64FF6
1 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,10 @@
:tray {:spacing 10}
:clock {:tooltip-format "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
: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