.\" Generated by scdoc 1.11.2 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "waybar-cpu" "5" "2023-02-28" .P .SH NAME .P waybar - cpu module .P .SH DESCRIPTION .P The \fBcpu\fR module displays the current cpu utilization.\& .P .SH CONFIGURATION .P \fBinterval\fR: .br typeof: integer .br default: 10 .br The interval in which the information gets polled.\& .P \fBformat\fR: .br typeof: string .br default: {usage}% .br The format, how information should be displayed.\& On {} data gets inserted.\& .P \fBformat-icons\fR: .br typeof: array/object .br Based on the current usage, the corresponding icon gets selected.\& .br The order is \fBlow\fR to \fBhigh\fR.\& Or by the state if it is an object.\& .P \fBmax-length\fR: .br typeof: integer .br The maximum length in character the module should display.\& .P \fBmin-length\fR: .br typeof: integer .br The minimum length in characters the module should take up.\& .P \fBalign\fR: .br typeof: float .br 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.\& .P \fBrotate\fR: .br typeof: integer .br Positive value to rotate the text label.\& .P \fBstates\fR: .br typeof: object .br A number of cpu usage states which get activated on certain usage levels.\& See \fBwaybar-states(5)\fR.\& .P \fBon-click\fR: .br typeof: string .br Command to execute when clicked on the module.\& .P \fBon-click-middle\fR: .br typeof: string .br Command to execute when middle-clicked on the module using mousewheel.\& .P \fBon-click-right\fR: .br typeof: string .br Command to execute when you right clicked on the module.\& .P \fBon-update\fR: .br typeof: string .br Command to execute when the module is updated.\& .P \fBon-scroll-up\fR: .br typeof: string .br Command to execute when scrolling up on the module.\& .P \fBon-scroll-down\fR: .br typeof: string .br Command to execute when scrolling down on the module.\& .P \fBsmooth-scrolling-threshold\fR: .br typeof: double .br Threshold to be used when scrolling.\& .P \fBtooltip\fR: .br typeof: bool .br default: true .br Option to disable tooltip on hover.\& .P .SH FORMAT REPLACEMENTS .P \fB{load}\fR: Current cpu load.\& .P \fB{usage}\fR: Current overall cpu usage.\& .P \fB{usage\fR{n}\fB}\fR: Current cpu core n usage.\& Cores are numbered from zero, so first core will be {usage0} and 4th will be {usage3}.\& .P \fB{avg_frequency}\fR: Current cpu average frequency (based on all cores) in GHz.\& .P \fB{max_frequency}\fR: Current cpu max frequency (based on the core with the highest frequency) in GHz.\& .P \fB{min_frequency}\fR: Current cpu min frequency (based on the core with the lowest frequency) in GHz.\& .P \fB{icon}\fR: Icon for overall cpu usage.\& .P \fB{icon\fR{n}\fB}\fR: Icon for cpu core n usage.\& Use like {icon0}.\& .P .SH EXAMPLES .P Basic configuration: .P .nf .RS 4 "cpu": { "interval": 10, "format": "{}% ", "max-length": 10 } .fi .RE .P Cpu usage per core rendered as icons: .P .nf .RS 4 "cpu": { "interval": 1, "format": "{icon0}{icon1}{icon2}{icon3} {usage:>2}% ", "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"], }, .fi .RE .P .SH STYLE .P .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .IP \(bu 4 .\} \fB#cpu\fR .RE