2024-02-18 20:26:15 -08:00
|
|
|
local bling = require("lib.bling")
|
|
|
|
|
|
|
|
local instance = nil
|
|
|
|
|
|
|
|
local function new()
|
|
|
|
return bling.signal.playerctl.lib({
|
|
|
|
update_on_activity = true,
|
2024-02-19 19:41:33 -08:00
|
|
|
player = { "mopidy", "spotify", "%any" },
|
2024-02-18 20:26:15 -08:00
|
|
|
debounce_delay = 1,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if not instance then
|
|
|
|
instance = new()
|
|
|
|
end
|
|
|
|
return instance
|