Man page - yambar-modules-cpu(5)
Packages contas this manual
- yambar-modules-alsa(5)
- yambar-decorations(5)
- yambar-modules-pipewire(5)
- yambar-modules-network(5)
- yambar-modules-battery(5)
- yambar-modules-mem(5)
- yambar-modules-xkb(5)
- yambar-modules-i3(5)
- yambar-modules-script(5)
- yambar-modules-label(5)
- yambar-modules(5)
- yambar-modules-dwl(5)
- yambar-modules-sway-xkb(5)
- yambar-modules-removables(5)
- yambar-particles(5)
- yambar(5)
- yambar-tags(5)
- yambar-modules-cpu(5)
- yambar-modules-river(5)
- yambar-modules-sway(5)
- yambar-modules-clock(5)
- yambar-modules-backlight(5)
- yambar-modules-pulse(5)
- yambar-modules-foreign-toplevel(5)
- yambar(1)
- yambar-modules-mpd(5)
- yambar-modules-disk-io(5)
Package: yambar
apt-get install yambar
apt-get install yambar
Manuals in package:
Documentations in package:
Manual
| yambar-modules-cpu(5) | File Formats Manual | yambar-modules-cpu(5) |
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
| Name | Type | Description |
| id | int | Core ID. 0..n represents individual cores, and -1 represents the total usage |
| cpu | range | Current usage of CPU core {id}, in percent |
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. |
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}%"}
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: █}
SEE ALSO
yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5)
| 2024-04-20 |