cpu - This module provides the CPU usage
Contents
Configuration
┌───────────────┬──────┬─────┬──────────────────────────────────────────────────────────────────────────┐
│ Name │ Type │ Req │ Description │
├───────────────┼──────┼─────┼──────────────────────────────────────────────────────────────────────────┤
│ poll-interval │ int │ no │ Refresh interval of the CPU usage stats in milliseconds (default=500). │
│ │ │ │ Cannot be less then 250ms. │
└───────────────┴──────┴─────┴──────────────────────────────────────────────────────────────────────────┘
Description
This module reports CPU usage, in percent. The content particle is a template that is instantiated once
for each core, and once for the total CPU usage.
Examples
DisplaytotalCPUusageasanumber
bar:
left:
- cpu:
poll-interval: 2500
content:
map:
conditions:
id < 0:
- string: {text: , font: Font Awesome 6 Free:style=solid}
- string: {text: "{cpu}%"}
Displayaverticalbarforeachcore
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: █}
Name
cpu - This module provides the CPU usage
See Also
yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5)
2024-04-20 yambar-modules-cpu(5)
