From 0d09d5315f282439fb1b797d3f7df4f0e5ffebd0 Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 24 Apr 2022 08:32:58 -0700 Subject: [PATCH] Added a table hack --- rc.lua | 4 ++-- volume/init.lua | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) 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