X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ddbf283f0ebbc6772d485fe76c5dccf338d3b837..91569eb5b4ffb200f3f68baaabcd42af32d13674:/widgets/pulseaudio.lua?ds=inline diff --git a/widgets/pulseaudio.lua b/widgets/pulseaudio.lua index 8e89ffd..68d3066 100644 --- a/widgets/pulseaudio.lua +++ b/widgets/pulseaudio.lua @@ -16,7 +16,7 @@ local setmetatable = setmetatable -- PulseAudio volume -- lain.widgets.pulseaudio -local pulseaudio = helpers.make_widget_textbox() +local pulseaudio = {} local function worker(args) local args = args or {} @@ -26,6 +26,8 @@ local function worker(args) 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() if scallback then pulseaudio.cmd = scallback() end