Skip to content
Luke Bonham edited this page Sep 10, 2013 · 27 revisions

<- 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 10
settings User settings function empty function

settings can use the string usage, which is the cpu use percentage.

output

A textbox.

Clone this wiki locally