2013-09-07 14:33:23 +02:00
|
|
|
[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets)
|
|
|
|
|
2013-09-07 14:03:04 +02:00
|
|
|
Show the current system load in a textbox.
|
|
|
|
|
2013-09-07 14:03:21 +02:00
|
|
|
mysysload = lain.widgets.sysload()
|
2013-09-07 14:03:04 +02:00
|
|
|
|
|
|
|
The function takes a table as optional argument, which can contain:
|
|
|
|
|
|
|
|
Variable | Meaning | Type | Default
|
|
|
|
--- | --- | --- | ---
|
|
|
|
`show_all` | Show all the three values (true), or only the first one (false) | boolean | false
|
|
|
|
`refresh_timeout` | Refresh timeout seconds | int | 5
|
|
|
|
`header` | Text to show before value | string | " Load "
|
|
|
|
`header_color` | Header color | string | `beautiful.fg_normal` or "#FFFFFF"
|
|
|
|
`color` | Value color | string | `beautiful.fg_focus` or "#FFFFFF"
|
|
|
|
`app` | Proc program to spawn on click | string | "top"
|