waybar: cpu: show both maximum and average clock

This commit is contained in:
LordMZTE 2024-11-20 13:03:03 +01:00
parent c7c204958c
commit 58857f28b5
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -54,7 +54,7 @@ end
:clock {:tooltip-format "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
:format-alt "{:%Y-%m-%d}"}
:cpu {:format (.. (faccumulate [s "" i 0 (- (cg.opt.system :nproc) 1)]
(.. s "{icon" i "}")) " {usage}% {avg_frequency}GHz ")
(.. s "{icon" i "}")) " {usage}% {max_frequency} {avg_frequency}⌀ ")
:interval 2
: format-icons}
:memory {:format "{}% "}