Actualizacion maquina principal
[dotfiles/.git] / .config / awesome / lain / wiki / cpu.md
1 ## Usage
2
3 [Read here.](https://github.com/lcpz/lain/wiki/Widgets#usage)
4
5 ### Description
6
7 Shows the current CPU usage, both in general and per core.
8
9 ```lua
10 local mycpu = lain.widget.cpu()
11 ```
12
13 ## Input table
14
15 Variable | Meaning | Type | Default
16 --- | --- | --- | ---
17 `timeout` | Refresh timeout (in seconds) | integer | 2
18 `settings` | User settings | function | empty function
19
20 `settings` can use these strings:
21
22 * `cpu_now.usage`, the general use percentage;
23 * `cpu_now[i].usage`, the i-th core use percentage, with `i` starting from 1.
24
25 ## Output table
26
27 Variable | Meaning | Type
28 --- | --- | ---
29 `widget` | The widget | `wibox.widget.textbox`
30 `update` | Update `widget` | function