From b93080ee0ac2590005a96a806cd5a53c14dab8a9 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Mon, 11 Nov 2024 18:01:04 -0500 Subject: [PATCH] Update mpris-widget/init.lua MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: André Jaenisch --- mpris-widget/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mpris-widget/init.lua b/mpris-widget/init.lua index 8759fb6..e5e149a 100644 --- a/mpris-widget/init.lua +++ b/mpris-widget/init.lua @@ -70,7 +70,8 @@ function playerctl:watch(timeout, callback, widget) callback(cb_widget, metadata) end - _, self.timer = awful.widget.watch(cmd, timeout, cb, widget) + local _, timer = awful.widget.watch(cmd, timeout, cb, widget) + self.timer = timer end function playerctl:toggle() awful.spawn(self:cmd('play-pause'), false) end