diff --git a/rc.lua b/rc.lua index 78858d8..c8afb28 100755 --- a/rc.lua +++ b/rc.lua @@ -35,8 +35,8 @@ wrapper.ibus.set(1) beautiful.init(require("theme")) -- Initialize volume controller -volume = require("volume") -vol = volume:new{pa_sink = conf.pamixer_sink} +Volume = require("volume") +vol = Volume{pa_sink = conf.pamixer_sink} desktop = require("desktop") diff --git a/volume/init.lua b/volume/init.lua index e3c557e..b6b3308 100644 --- a/volume/init.lua +++ b/volume/init.lua @@ -1,2 +1,7 @@ local P = require("volume/volume") -return P + +local F = function(args) + return P:new(args) +end + +return F