1waybar-cpu(5)                 File Formats Manual                waybar-cpu(5)
2
3
4

NAME

6       waybar - cpu module
7

DESCRIPTION

9       The cpu module displays the current cpu utilization.
10

CONFIGURATION

12       interval:
13            typeof: integer
14            default: 10
15            The interval in which the information gets polled.
16
17       format:
18            typeof: string
19            default: {usage}%
20            The format, how information should be displayed. On {} data gets
21       inserted.
22
23       max-length:
24            typeof: integer
25            The maximum length in character the module should display.
26
27       min-length:
28           typeof: integer
29           The minimum length in characters the module should take up.
30
31       align:
32           typeof: float
33           The alignment of the text, where 0 is left-aligned and 1 is right-
34       aligned. If the module is rotated, it will follow the flow of the text.
35
36       rotate:
37            typeof: integer
38            Positive value to rotate the text label.
39
40       states:
41            typeof: array
42            A number of cpu usage states which get activated on certain usage
43       levels. See waybar-states(5).
44
45       on-click:
46            typeof: string
47            Command to execute when clicked on the module.
48
49       on-click-middle:
50            typeof: string
51            Command to execute when middle-clicked on the module using mouse‐
52       wheel.
53
54       on-click-right:
55            typeof: string
56            Command to execute when you right clicked on the module.
57
58       on-update:
59            typeof: string
60            Command to execute when the module is updated.
61
62       on-scroll-up:
63            typeof: string
64            Command to execute when scrolling up on the module.
65
66       on-scroll-down:
67            typeof: string
68            Command to execute when scrolling down on the module.
69
70       smooth-scrolling-threshold:
71            typeof: double
72            Threshold to be used when scrolling.
73
74       tooltip:
75            typeof: bool
76            default: true
77            Option to disable tooltip on hover.
78

FORMAT REPLACEMENTS

80       {load}: Current cpu load.
81
82       {usage}: Current cpu usage.
83
84       {avg_frequency}: Current cpu average frequency (based on all cores) in
85       GHz.
86
87       {max_frequency}: Current cpu max frequency (based on the core with the
88       highest frequency) in GHz.
89
90       {min_frequency}: Current cpu min frequency (based on the core with the
91       lowest frequency) in GHz.
92

EXAMPLE

94           "cpu": {
95                "interval": 10,
96                "format": "{}% ",
97                "max-length": 10
98           }
99

STYLE

101#cpu
102
103
104
105                                  2021-04-15                     waybar-cpu(5)
Impressum