X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ddbf283f0ebbc6772d485fe76c5dccf338d3b837..229d2545dd399b52c6128a823657c6266fbbe8a9:/widgets/sysload.lua diff --git a/widgets/sysload.lua b/widgets/sysload.lua index 148319d..49f640c 100644 --- a/widgets/sysload.lua +++ b/widgets/sysload.lua @@ -15,13 +15,15 @@ local setmetatable = setmetatable -- System load -- lain.widgets.sysload -local sysload = helpers.make_widget_textbox() +local sysload = {} local function worker(args) local args = args or {} local timeout = args.timeout or 2 local settings = args.settings or function() end + sysload.widget = wibox.widget.textbox() + function update() local f = io.open("/proc/loadavg") local ret = f:read("*all")