Page:
Module: CPU
Pages
Abrar's Waybar
Add a custom plugin.
Anik's waybar config (super waybar)
Ariacna Æsama
Arkboi
Chocolate & Cream
Configuration
Dynamic wallust powered waybar
ERS’ waybar
Examples
FAQ
Home
Installation
JohanChane's waybar
Module: Backlight Slider
Module: Backlight
Module: Battery
Module: Bluetooth
Module: CFFI
Module: CPU
Module: Cava
Module: Cava: GLSL
Module: Cava: Raw
Module: Clock
Module: Custom
Module: Custom: Examples
Module: Custom: Menu
Module: Custom: Third party
Module: Disk
Module: Dwl
Module: Gamemode
Module: Group
Module: Hyprland
Module: Idle Inhibitor
Module: Image
Module: JACK
Module: Keyboard State
Module: Language
Module: Load
Module: MPD
Module: MPRIS
Module: Memory
Module: Network
Module: Niri
Module: PowerProfilesDaemon
Module: Privacy
Module: PulseAudio Slider
Module: PulseAudio
Module: River
Module: Sndio
Module: Sway
Module: Systemd failed units
Module: Taskbar
Module: Temperature
Module: Tray
Module: UPower
Module: User
Module: WirePlumber
Module: Workspaces
Modules
Simple and Attractive
States
Styling
That's all bitches
Themes
Thos' config based on pywal
Tray Applets
Writing Modules
apachaiz's waybar
d00m1k's configuration
lingllqs's simple dark style configuration
mechabar
mudi4's waybar
new waylyrics
nitrobigchill's waybar
rdk‐codes configuration
waybar config
Clone
18
Module: CPU
Mehraz Ahmed edited this page 2025-11-17 00:13:04 -05:00
Table of Contents
The cpu module displays the current cpu utilization.
Config
Addressed by cpu
| option | typeof | default | description |
|---|---|---|---|
interval |
integer | 10 | The polling interval (in seconds) for CPU info. |
format |
string | {usage}% |
The format, how information should be displayed. Data in {} gets inserted (see below). |
max-length |
integer | The maximum length in characters the module should display. | |
rotate |
integer | Positive value to rotate the text label. | |
states |
array | A number of cpu usage states which get activated on certain usage levels. See States |
|
on-click |
string | Command to execute when clicking on the module. | |
on-click-middle |
string | Command to execute when you middle click on the module using mousewheel. | |
on-click-right |
string | Command to execute when you right click on the module. | |
on-scroll-up |
string | Command to execute when scrolling up on the module. | |
on-scroll-down |
string | Command to execute when scrolling down on the module. | |
smooth-scrolling-threshold |
double | Threshold to be used when scrolling. | |
tooltip |
bool | true |
Option to enable tooltip on hover. |
Format replacements:
| string | replacement |
|---|---|
{load} |
The 1 minute cpu load average. |
{usage} |
Current cpu usage (% view). |
{usageN} |
Nth cpu core usage (% view). |
{icon} |
Current cpu usage (icon view). |
{iconN} |
Nth cpu core usage (icon view). |
{avg_frequency} |
Current cpu average frequency (based on all cores) in GHz. |
{max_frequency} |
Current cpu max frequency (based on the core with the highest frequency) in GHz. |
{min_frequency} |
Current cpu min frequency (based on the core with the lowest frequency) in GHz. |
Examples:
"cpu": {
"interval": 10,
"format": "{}% ",
"max-length": 10
}
"cpu": {
"format": "{icon0} {icon1} {icon2} {icon3} {icon4} {icon5} {icon6} {icon7}",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
},
Using PangoMarkupFormat:
"cpu": {
"interval": 1,
"format": "{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}",
"format-icons": [
"<span color='#69ff94'>▁</span>", // green
"<span color='#2aa9ff'>▂</span>", // blue
"<span color='#f8f8f2'>▃</span>", // white
"<span color='#f8f8f2'>▄</span>", // white
"<span color='#ffffa5'>▅</span>", // yellow
"<span color='#ffffa5'>▆</span>", // yellow
"<span color='#ff9977'>▇</span>", // orange
"<span color='#dd532e'>█</span>" // red
]
}
"cpu": {
"format": "{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}",
"format-icons": [
"🁣", "🁤", "🁥", "🁦", "🁧", "🁨", "🁩",
"🁪", "🁫", "🁬", "🁭", "🁮", "🁯", "🁰",
"🁱", "🁲", "🁳", "🁴", "🁵", "🁶", "🁷",
"🁸", "🁹", "🁺", "🁻", "🁼", "🁽", "🁾",
"🁿", "🂀", "🂁", "🂂", "🂃", "🂄", "🂅",
"🂆", "🂇", "🂈", "🂉", "🂊", "🂋", "🂌",
"🂍", "🂎", "🂏", "🂐", "🂑", "🂒", "🂓", "🁢"
],
},
Style
#cpu
- Home
- Installation
- Configuration
- Styling
- Examples
- FAQ
- Modules:
- Backlight/Slider
- Backlight
- Battery
- Bluetooth
- CPU
- Cava
- CFFI
- Clock
- Custom
- DWL
- Disk
- Gamemode
- Group
- Hyprland
- Idle Inhibitor
- Image
- JACK
- Keyboard State
- Language
- Load
- MPD
- MPRIS
- Memory
- Network
- Niri
- Power Profiles Daemon
- Privacy
- PulseAudio/Slider
- PulseAudio
- River
- Sndio
- Sway
- Systemd failed units
- Taskbar
- Temperature
- Tray
- UPower
- User
- WirePlumber
- Workspaces
- Writing Modules