lina/cpu.md
2013-09-10 15:03:57 -07:00

18 lines
No EOL
451 B
Markdown

[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets)
Shows in a textbox the average CPU usage percent for a given amount of time.
mycpuusage = lain.widgets.cpu()
### input table
Variable | Meaning | Type | Default
--- | --- | --- | ---
`timeout` | Refresh timeout seconds | int | 5
`settings` | User settings | function | empty function
`settings` can use the string `usage`, which is the cpu use percentage.
### output
A textbox.