LUASTATUS-PLUGIN-MEM-USAGE-LINUX(7)
π luastatus-mem-usage-linux(7) π
Hey bestie, welcome to this little page from the Miscellaneous Information Manual, section 7. Itβs giving βLinux-specific memory usage plugin for luastatusβ energy, and weβre gonna get into it. π«Άβ¨
πΈ Name πΈ
luastatus-mem-usage-linux β a Linux-specific memory usage plugin for luastatus. Periodt. π
β¨ Overview β¨
Okay so this is a derived plugin: it periodically polls Linux procfs for memory usage. Lowkey iconic, highkey useful. π¦
π Functions π
get_usage()β returns a table with two entries,availandtotal. Both are tables that havevalue(a number) andunit(a string) entries; you can assumeunitis always"kB". No cap, thatβs the whole vibe. πwidget(tbl)β constructs a widget table required by luastatus.tblis a table with these fields:- (required) π₯
cb: function β the callback that will be called with the table same as that returned byget_usage(). So itβs basically getting the same little tableget_usage()hands you. π
- (optional) π
timer_opts: table β options for the underlying timer plugin.eventβ theevententry of the resulting table (see luastatus documentation for the description ofwidget.eventfield). Iykyk. π
- (required) π₯
π Copyright π
LGPLv3 β legal slay, bestie. π§π
Signed off from the Miscellaneous Information Manual, section 7 β luastatus-mem-usage-linux(7). No date stamped on this one, just pure LGPLv3 energy at the end. π«Άπ
π¦ where this page comes from
- nixos 26.05: luastatus 0.6.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms