X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/d9877c4bedca550478507f268f43e137e4454c24..229d2545dd399b52c6128a823657c6266fbbe8a9:/widgets/pulseaudio.lua diff --git a/widgets/pulseaudio.lua b/widgets/pulseaudio.lua index 3178dcf..68d3066 100644 --- a/widgets/pulseaudio.lua +++ b/widgets/pulseaudio.lua @@ -25,6 +25,7 @@ local function worker(args) local scallback = args.scallback pulseaudio.cmd = args.cmd or "pacmd list-sinks | sed -n -e '0,/*/d' -e '/base volume/d' -e '/volume:/p' -e '/muted:/p' -e '/device\\.string/p'" + pulseaudio.widget = wibox.widget.textbox() function pulseaudio.update() @@ -54,7 +55,7 @@ local function worker(args) helpers.newtimer("pulseaudio", timeout, pulseaudio.update) - return setmetatable(pulseaudio, { __index = pulseaudio.widget }) + return pulseaudio end return setmetatable(pulseaudio, { __call = function(_, ...) return worker(...) end })