X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/e386dbb7196851dd348f71b3db601be2786c3324..1793f94b00c04639e97bad43b50bbc111a8f393d:/widgets/pulseaudio.lua?ds=sidebyside 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