aboutsummaryrefslogtreecommitdiff
path: root/widgets/hddtemp.lua
diff options
context:
space:
mode:
authorArvydas Sidorenko <asido4@gmail.com>2012-06-15 18:07:05 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2012-06-18 01:26:31 +0200
commit41cc2c0e27e6a0860d21754ed9d13f6cd61254ac (patch)
tree20ed8fe7b878caec0c9e033168fe79561f31db57 /widgets/hddtemp.lua
parentb6b52900930ddb2a5b958a6d314766b455358164 (diff)
downloadvicious-legacy-41cc2c0e27e6a0860d21754ed9d13f6cd61254ac.tar.xz
Ported vicious.widgets module to lua 5.2
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com> Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Diffstat (limited to 'widgets/hddtemp.lua')
-rw-r--r--widgets/hddtemp.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/hddtemp.lua b/widgets/hddtemp.lua
index 0c79656..85ee767 100644
--- a/widgets/hddtemp.lua
+++ b/widgets/hddtemp.lua
@@ -12,7 +12,8 @@ local string = { gmatch = string.gmatch }
-- Hddtemp: provides hard drive temperatures using the hddtemp daemon
-module("vicious.widgets.hddtemp")
+-- vicious.widgets.hddtemp
+local hddtemp = {}
-- {{{ HDD Temperature widget type
@@ -34,4 +35,4 @@ local function worker(format, warg)
end
-- }}}
-setmetatable(_M, { __call = function(_, ...) return worker(...) end })
+return setmetatable(hddtemp, { __call = function(_, ...) return worker(...) end })