aboutsummaryrefslogtreecommitdiff
path: root/contrib/batpmu.lua
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/batpmu.lua')
-rw-r--r--contrib/batpmu.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/batpmu.lua b/contrib/batpmu.lua
index e84295e..8c73d93 100644
--- a/contrib/batpmu.lua
+++ b/contrib/batpmu.lua
@@ -20,7 +20,8 @@ local string = {
-- Batpmu: provides state, charge and remaining time for a requested battery using PMU
-module("vicious.contrib.batpmu")
+-- vicious.contrib.batpmu
+local batpmu = {}
-- {{{ Battery widget type
@@ -75,4 +76,4 @@ local function worker(format, batid)
end
-- }}}
-setmetatable(_M, { __call = function(_, ...) return worker(...) end })
+return setmetatable(batpmu, { __call = function(_, ...) return worker(...) end })