X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/42424334b26f3d8cea288663f67393545d27bafe..6cce5b6fe11fe8c69b08140d645c604fef59e42a:/widgets/pulseaudio.lua diff --git a/widgets/pulseaudio.lua b/widgets/pulseaudio.lua index 15bea8b..45981f3 100644 --- a/widgets/pulseaudio.lua +++ b/widgets/pulseaudio.lua @@ -9,11 +9,9 @@ local read_pipe = require("lain.helpers").read_pipe local newtimer = require("lain.helpers").newtimer local wibox = require("wibox") - local string = { gmatch = string.gmatch, match = string.match, format = string.format } - local setmetatable = setmetatable -- PulseAudio volume @@ -27,7 +25,7 @@ local function worker(args) local scallback = args.scallback pulseaudio.cmd = args.cmd or string.format("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('') + pulseaudio.widget = wibox.widget.textbox() function pulseaudio.update() if scallback then pulseaudio.cmd = scallback() end