2013-09-07 14:34:12 +02:00
|
|
|
[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets)
|
|
|
|
|
2013-09-07 14:08:42 +02:00
|
|
|
Shows memory status (in MiB) in a textbox.
|
2013-09-07 12:11:44 +02:00
|
|
|
|
|
|
|
mymem = lain.widgets.mem()
|
|
|
|
|
2013-09-13 02:34:34 +02:00
|
|
|
### input table
|
2013-09-07 12:11:44 +02:00
|
|
|
|
|
|
|
Variable | Meaning | Type | Default
|
|
|
|
--- | --- | --- | ---
|
2013-09-11 00:04:34 +02:00
|
|
|
`timeout` | Refresh timeout seconds | int | 3
|
2013-09-10 23:33:06 +02:00
|
|
|
`settings` | User settings | function | empty function
|
|
|
|
|
2013-09-12 21:47:57 +02:00
|
|
|
`settings` can use the strings `mem_now.used` (memory used MB) and `mem_now.swapused` (swap used MB).
|
2013-09-10 23:33:06 +02:00
|
|
|
|
|
|
|
### output
|
|
|
|
|
|
|
|
A textbox.
|