17 lines
280 B
Lua
17 lines
280 B
Lua
local bling = require("lib.bling")
|
|
|
|
local instance = nil
|
|
|
|
local function new()
|
|
return bling.signal.playerctl.lib({
|
|
update_on_activity = true,
|
|
player = { "mopidy", "spotify", "%any" },
|
|
debounce_delay = 1,
|
|
})
|
|
end
|
|
|
|
if not instance then
|
|
instance = new()
|
|
end
|
|
|
|
return instance
|