X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/e386dbb7196851dd348f71b3db601be2786c3324..a659d1a4bc99d27a1746985e13f68efc3dd256c7:/widgets/pulseaudio.lua diff --git a/widgets/pulseaudio.lua b/widgets/pulseaudio.lua index 3ef26f0..c2686d8 100644 --- a/widgets/pulseaudio.lua +++ b/widgets/pulseaudio.lua @@ -6,14 +6,14 @@ --]] -local read_pipe = require("lain.helpers").read_pipe -local newtimer = require("lain.helpers").newtimer -local wibox = require("wibox") +local read_pipe = require("lain.helpers").read_pipe +local newtimer = require("lain.helpers").newtimer +local wibox = require("wibox") -local string = { match = string.match, - format = string.format } +local string = { match = string.match, + format = string.format } -local setmetatable = setmetatable +local setmetatable = setmetatable -- PulseAudio volume -- lain.widgets.pulseaudio @@ -41,7 +41,7 @@ local function worker(args) settings() end - newtimer(string.format("pulseaudio-%s", pulseaudio.sink), timeout, pulseaudio.update) + newtimer(string.format("pulseaudio-%s", timeout), timeout, pulseaudio.update) return setmetatable(pulseaudio, { __index = pulseaudio.widget }) end