Update mpris-widget/init.lua

Co-authored-by: André Jaenisch <Ryuno-Ki@users.noreply.github.com>
This commit is contained in:
streetturtle 2024-11-11 18:01:04 -05:00 committed by GitHub
parent 7eb3b2a453
commit b93080ee0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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