# CPU (https://mangowm.github.io/docs/bar/modules/cpu)

Shows CPU usage or load average.

```jsonc
"modules-right": ["cpu"],

"cpu": {
    "format": " {load}%"
}
```

## Options [#options]

| Option     | Type    | Default               | Description                                                  |
| ---------- | ------- | --------------------- | ------------------------------------------------------------ |
| `format`   | string  | `CPU:{}%`             | Display format (see placeholders below)                      |
| `interval` | int (s) | global `sys-interval` | Refresh interval override; `0`/omitted uses the global value |

## Placeholders [#placeholders]

| Placeholder      | Description                          |
| ---------------- | ------------------------------------ |
| `{}` / `{usage}` | CPU usage percent                    |
| `{load}`         | 1-minute load average (two decimals) |
| `{percent}`      | Alias for `{usage}`                  |

## Styling [#styling]

```css
#cpu {
  background: linear-gradient(to top, #c4b595, mix(#c4b595, #fbf1c7, 0.3));
  color: #1b1a1a;
}
```