X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/1574793252a5b5ac22734d9d7a26dd4f6869b72e..72556c9cd181c7cc269fdd164c09d8059684f431:/widgets/alsabar.lua diff --git a/widgets/alsabar.lua b/widgets/alsabar.lua index 1421975..8ec5a00 100644 --- a/widgets/alsabar.lua +++ b/widgets/alsabar.lua @@ -148,8 +148,6 @@ local function worker(args) settings() end - newtimer("alsabar", timeout, alsabar.update) - alsabar.bar:buttons (awful.util.table.join ( awful.button ({}, 1, function() awful.util.spawn(alsabar.mixer) @@ -168,6 +166,10 @@ local function worker(args) end) )) + timer_id = string.format("alsabar-%s-%s", alsabar.cmd, alsabar.channel) + + newtimer(timer_id, timeout, alsabar.update) + return alsabar end