diff options
Diffstat (limited to 'contrib/batproc.lua')
-rw-r--r-- | contrib/batproc.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/batproc.lua b/contrib/batproc.lua index dac4d44..8acf005 100644 --- a/contrib/batproc.lua +++ b/contrib/batproc.lua @@ -20,7 +20,8 @@ local string = { -- Batproc: provides state, charge, and remaining time for a requested battery using procfs -module("vicious.contrib.batproc") +-- vicious.contrib.batproc +local batproc = {} -- {{{ Battery widget type @@ -82,4 +83,4 @@ local function worker(format, batid) end -- }}} -setmetatable(_M, { __call = function(_, ...) return worker(...) end }) +return setmetatable(batproc, { __call = function(_, ...) return worker(...) end }) |