Skip to content

Commit

Permalink
Update mpris-widget/init.lua
Browse files Browse the repository at this point in the history
Co-authored-by: André Jaenisch <[email protected]>
  • Loading branch information
streetturtle and Ryuno-Ki authored Nov 11, 2024
1 parent 7eb3b2a commit b93080e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mpris-widget/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b93080e

Please sign in to comment.