yambar-modules-cpu(5)

cpu - This module provides the CPU usage

Section 5 yambar bookworm source

Description

yambar-modules-cpu

NAME

cpu - This module provides the CPU usage

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.

TAGS

Image grohtml-12356-1.png

CONFIGURATION

Image grohtml-12356-2.png

EXAMPLES

Display total CPU usage as a number

bar:
left:
- cpu:
interval: 2500
content:
map:
conditions:
id < 0:
- string: {text: ï, font: Font Awesome 6 Free:style=solid}
- string: {text: "{cpu}%"}

Display a vertical bar for each core

bar:
left:
- cpu:
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: â}

SEE ALSO

yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5)