aboutsummaryrefslogtreecommitdiff
path: root/contrib/batproc.lua
diff options
context:
space:
mode:
authorArvydas Sidorenko <asido4@gmail.com>2012-06-15 20:48:17 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2012-06-18 01:27:53 +0200
commit8e35a983bf24f6f90df4630b2b55409f0ca1d213 (patch)
treebec2a7d44b7994c299e82c2348740a11ffeb71a6 /contrib/batproc.lua
parent41cc2c0e27e6a0860d21754ed9d13f6cd61254ac (diff)
downloadvicious-legacy-8e35a983bf24f6f90df4630b2b55409f0ca1d213.tar.xz
Ported vicious.contrib to lua 5.2
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com> Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Diffstat (limited to 'contrib/batproc.lua')
-rw-r--r--contrib/batproc.lua5
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 })