Module i3status_rs::blocks::cpu

source ·
Expand description

CPU statistics

§Configuration

KeyValuesDefault
formatA string to customise the output of this block. See below for available placeholders." $icon $utilization "
format_altIf set, block will switch between format and format_alt on every clickNone
intervalUpdate interval in seconds5
info_cpuPercentage of CPU usage, where state is set to info30.0
warning_cpuPercentage of CPU usage, where state is set to warning60.0
critical_cpuPercentage of CPU usage, where state is set to critical90.0
PlaceholderValueTypeUnit
iconAn iconIcon-
utilizationAverage CPU utilizationNumber%
utilization<N>Utilization of Nth logical CPUNumber%
barchartUtilization of all logical CPUs presented as a barchartText-
frequencyAverage CPU frequency (may be absent if CPU is not supported)NumberHz
frequency<N>Frequency of Nth logical CPU (may be absent if CPU is not supported)NumberHz
max_frequencyMax frequency of all logical CPUsNumberHz
boostCPU turbo boost status (may be absent if CPU is not supported)Text-
ActionDescriptionDefault button
toggle_formatToggles between format and format_altLeft

§Example

[[block]]
block = "cpu"
interval = 1
format = " $icon $barchart $utilization "
format_alt = " $icon $frequency{ $boost|} "
info_cpu = 20
warning_cpu = 50
critical_cpu = 90

§Icons Used

  • cpu (as a progression)
  • cpu_boost_on
  • cpu_boost_off

Structs§

Functions§