2019-08-26 12:23:11 +00:00
|
|
|
waybar-cpu(5)
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
|
|
waybar - cpu module
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
The *cpu* module displays the current cpu utilization.
|
|
|
|
|
|
|
|
# CONFIGURATION
|
|
|
|
|
|
|
|
*interval*: ++
|
2019-08-26 12:31:57 +00:00
|
|
|
typeof: integer ++
|
|
|
|
default: 10 ++
|
|
|
|
The interval in which the information gets polled.
|
2019-08-26 12:23:11 +00:00
|
|
|
|
|
|
|
*format*: ++
|
2019-08-26 12:31:57 +00:00
|
|
|
typeof: string ++
|
|
|
|
default: {usage}% ++
|
|
|
|
The format, how information should be displayed. On {} data gets inserted.
|
2019-08-26 12:23:11 +00:00
|
|
|
|
2021-08-23 05:30:07 +00:00
|
|
|
*format-icons*: ++
|
|
|
|
typeof: array/object ++
|
|
|
|
Based on the current usage, the corresponding icon gets selected. ++
|
|
|
|
The order is *low* to *high*. Or by the state if it is an object.
|
|
|
|
|
2019-08-26 12:23:11 +00:00
|
|
|
*max-length*: ++
|
2019-08-26 12:31:57 +00:00
|
|
|
typeof: integer ++
|
|
|
|
The maximum length in character the module should display.
|
2019-08-26 12:23:11 +00:00
|
|
|
|
2021-02-01 16:34:51 +00:00
|
|
|
*min-length*: ++
|
|
|
|
typeof: integer ++
|
|
|
|
The minimum length in characters the module should take up.
|
|
|
|
|
|
|
|
*align*: ++
|
|
|
|
typeof: float ++
|
|
|
|
The alignment of the text, where 0 is left-aligned and 1 is right-aligned. If the module is rotated, it will follow the flow of the text.
|
|
|
|
|
2019-08-26 12:23:11 +00:00
|
|
|
*rotate*: ++
|
2019-08-26 12:31:57 +00:00
|
|
|
typeof: integer ++
|
|
|
|
Positive value to rotate the text label.
|
2019-08-26 12:23:11 +00:00
|
|
|
|
|
|
|
*states*: ++
|
2019-08-26 12:31:57 +00:00
|
|
|
typeof: array ++
|
|
|
|
A number of cpu usage states which get activated on certain usage levels. See *waybar-states(5)*.
|
2019-08-26 12:23:11 +00:00
|
|
|
|
|
|
|
*on-click*: ++
|
2019-08-26 12:31:57 +00:00
|
|
|
typeof: string ++
|
|
|
|
Command to execute when clicked on the module.
|
2019-08-26 12:23:11 +00:00
|
|
|
|
2019-12-29 04:20:29 +00:00
|
|
|
*on-click-middle*: ++
|
|
|
|
typeof: string ++
|
|
|
|
Command to execute when middle-clicked on the module using mousewheel.
|
|
|
|
|
2019-08-26 12:23:11 +00:00
|
|
|
*on-click-right*: ++
|
2019-08-26 12:31:57 +00:00
|
|
|
typeof: string ++
|
|
|
|
Command to execute when you right clicked on the module.
|
2019-08-26 12:23:11 +00:00
|
|
|
|
2020-04-12 16:35:41 +00:00
|
|
|
*on-update*: ++
|
|
|
|
typeof: string ++
|
|
|
|
Command to execute when the module is updated.
|
|
|
|
|
2019-08-26 12:23:11 +00:00
|
|
|
*on-scroll-up*: ++
|
2019-08-26 12:31:57 +00:00
|
|
|
typeof: string ++
|
|
|
|
Command to execute when scrolling up on the module.
|
2019-08-26 12:23:11 +00:00
|
|
|
|
|
|
|
*on-scroll-down*: ++
|
2019-08-26 12:31:57 +00:00
|
|
|
typeof: string ++
|
|
|
|
Command to execute when scrolling down on the module.
|
2019-08-26 12:23:11 +00:00
|
|
|
|
|
|
|
*smooth-scrolling-threshold*: ++
|
2019-08-26 12:31:57 +00:00
|
|
|
typeof: double ++
|
|
|
|
Threshold to be used when scrolling.
|
2019-08-26 12:23:11 +00:00
|
|
|
|
|
|
|
*tooltip*: ++
|
2019-08-26 12:31:57 +00:00
|
|
|
typeof: bool ++
|
|
|
|
default: true ++
|
|
|
|
Option to disable tooltip on hover.
|
2019-08-26 12:23:11 +00:00
|
|
|
|
|
|
|
# FORMAT REPLACEMENTS
|
|
|
|
|
|
|
|
*{load}*: Current cpu load.
|
|
|
|
|
2021-09-17 19:22:14 +00:00
|
|
|
*{usage}*: Current overall cpu usage.
|
|
|
|
|
|
|
|
*{usage*{n}*}*: Current cpu core n usage. Cores are numbered from zero, so first core will be {usage0} and 4th will be {usage3}.
|
2019-08-26 12:23:11 +00:00
|
|
|
|
2021-02-02 22:33:33 +00:00
|
|
|
*{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.
|
|
|
|
|
2021-09-17 19:22:14 +00:00
|
|
|
*{icon}*: Icon for overall cpu usage.
|
|
|
|
|
|
|
|
*{icon*{n}*}*: Icon for cpu core n usage. Use like {icon0}.
|
|
|
|
|
|
|
|
# EXAMPLES
|
|
|
|
|
|
|
|
Basic configuration:
|
2019-08-26 12:23:11 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
"cpu": {
|
2019-08-26 12:31:57 +00:00
|
|
|
"interval": 10,
|
|
|
|
"format": "{}% ",
|
|
|
|
"max-length": 10
|
2019-08-26 12:23:11 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2021-09-17 19:22:14 +00:00
|
|
|
Cpu usage per core rendered as icons:
|
|
|
|
|
|
|
|
```
|
|
|
|
"cpu": {
|
|
|
|
"interval": 1,
|
|
|
|
"format": "{icon0}{icon1}{icon2}{icon3} {usage:>2}% ",
|
|
|
|
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
|
|
|
|
},
|
|
|
|
```
|
|
|
|
|
2019-08-26 12:23:11 +00:00
|
|
|
# STYLE
|
|
|
|
|
|
|
|
- *#cpu*
|