My configuration files for Debian/Ubuntu applications
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sysload.md 677 B

12345678910111213141516171819202122232425262728
  1. ## Usage
  2. [Read here.](https://github.com/lcpz/lain/wiki/Widgets#usage)
  3. ### Description
  4. Shows the current system load.
  5. ```lua
  6. mysysload = lain.widget.sysload()
  7. ```
  8. ## Input table
  9. Variable | Meaning | Type | Default
  10. --- | --- | --- | ---
  11. `timeout` | Refresh timeout (in seconds) | integer | 2
  12. `settings` | User settings | function | empty function
  13. `widget` | Widget to render | function | `wibox.widget.textbox`
  14. `settings` can use strings `load_1`, `load_5` and `load_15`, which are the load averages over 1, 5, and 15 minutes.
  15. ## Output table
  16. Variable | Meaning | Type
  17. --- | --- | ---
  18. `widget` | The widget | `wibox.widget.textbox`
  19. `update` | Update `widget` | function