X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/466c48d20a13a447afaec373b700a5cd2e3fa877..ebefc1e21d71c4b53e27e142cd199f3ec600da9c:/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