aboutsummaryrefslogtreecommitdiff
path: root/volume.lua
diff options
context:
space:
mode:
Diffstat (limited to 'volume.lua')
-rw-r--r--volume.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/volume.lua b/volume.lua
index fd02b76..14a7b0f 100644
--- a/volume.lua
+++ b/volume.lua
@@ -5,6 +5,7 @@
-- {{{ Grab environment
local io = { popen = io.popen }
+local setmetatable = setmetatable
local string = { match = string.match }
-- }}}
@@ -31,3 +32,5 @@ function worker(format, channel)
return {volume_level}
end
-- }}}
+
+setmetatable(_M, { __call = function(_, ...) return worker(...) end })