3 [Read here.](https://github.com/lcpz/lain/wiki/Widgets#usage)
7 Shows the current CPU usage, both in general and per core.
10 local mycpu = lain.widget.cpu()
15 Variable | Meaning | Type | Default
17 `timeout` | Refresh timeout (in seconds) | integer | 2
18 `settings` | User settings | function | empty function
20 `settings` can use these strings:
22 * `cpu_now.usage`, the general use percentage;
23 * `cpu_now[i].usage`, the i-th core use percentage, with `i` starting from 1.
27 Variable | Meaning | Type
29 `widget` | The widget | `wibox.widget.textbox`
30 `update` | Update `widget` | function