yambar-modules-cpu(5)
β¨ yambar-modules-cpu(5) β¨
okay bestie, so this is a page from the File Formats Manual β it's yambar-modules-cpu(5), and it's literally the whole guide to the cpu module. let's get into it π
πΈ NAME πΈ
cpu β this module provides the CPU usage. that's it, that's the vibe π«Ά
π¦ DESCRIPTION π¦
so this module reports CPU usage, in percent π―. here's the cute part: the content particle is a template that gets instantiated once for each core, and then once more for the total CPU usage. so yeah, you get one copy per core plus a bonus total one. icon behaviour honestly π
π TAGS π
here's what tags you get to play with:
idβ typeintπ β the Core ID.0..nrepresents individual cores, and-1represents the total usage. so-1is the main character of the whole CPU ngl.cpuβ typerangeπ β the Current usage of CPU core{id}, in percent.
π CONFIGURATION π
the config options, one (1) of them, she's lowkey the only one:
poll-intervalβ typeint, required? no π β this is the Refresh interval of the CPU usage stats in milliseconds (default=500).
β οΈ heads up bestie: it Cannot be less then 250ms. that's a hard no, the module will not be speeding past 250ms for you, no cap π
π EXAMPLES π
π Display total CPU usage as a number
bar:
left:
- cpu:
poll-interval: 2500
content:
map:
conditions:
id < 0:
- string: {text: , font: Font Awesome 6 Free:style=solid}
- string: {text: "{cpu}%"}
so id < 0 catches the total-usage instantiation (-1), drops the icon, then prints {cpu}% as a number. slay β¨
π§ Display a vertical bar for each core
bar:
left:
- cpu:
poll-interval: 2500
content:
map:
conditions:
id >= 0:
- ramp:
tag: cpu
items:
- string: {text: β}
- string: {text: β}
- string: {text: β}
- string: {text: β}
- string: {text: β
}
- string: {text: β}
- string: {text: β}
- string: {text: β}
this one's id >= 0 so it hits every individual core, and the ramp on tag: cpu gives you those little block characters β βββββ
βββ β rising with usage. it's giving sparkline energy fr fr ππ₯
β SEE ALSO β
go read these next, bestie, they're all part of the lore:
π and that's the whole page!! this was yambar-modules-cpu(5) dated 2024-04-22, straight from the File Formats Manual β stay hydrated, poll responsibly (β₯250ms pls), and go touch some cores π§ππ
π¦ where this page comes from
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms