Skip to content

WrapCpuProps

Attributes:

attr Cpu

Cpu: CpuProps

Type: CpuProps

A native component within hitokage that displays cpu information.

See ComponentProps

Example

monitor = hitokage.monitor.get_primary()

---@type ClockProps
cpu_props = { format = "{{pad "left" (concat (round (mult usage 100) 1) "%") 6}}" }

monitor:attach({
  children = {
    cpu = cpu_props,
  },
})

The mounted API is documented here: Cpu