X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/752ba7fa3d8928dfc19c59dbf3c6d167c4ae3bc9..229d2545dd399b52c6128a823657c6266fbbe8a9:/widgets/temp.lua diff --git a/widgets/temp.lua b/widgets/temp.lua index 4d8a727..9f41fdb 100644 --- a/widgets/temp.lua +++ b/widgets/temp.lua @@ -14,7 +14,7 @@ local setmetatable = setmetatable -- coretemp -- lain.widgets.temp -local temp = helpers.make_widget_textbox() +local temp = {} local function worker(args) local args = args or {} @@ -22,6 +22,8 @@ local function worker(args) local tempfile = args.tempfile or "/sys/class/thermal/thermal_zone0/temp" local settings = args.settings or function() end + temp.widget = wibox.widget.textbox() + function update() local f = io.open(tempfile) if f then