set-vars.lua

local musicctl = require('musicctl')

-- table of player names
local modes = { 'vlc', 'firefox' }

-- set the modes
musicctl.set_modes(modes)

-- set the current player to 'firefox'
-- instead of musicctl.modes[1]
-- from the call to set_modes()
musicctl.current_mode = 'firefox'

-- modes can also be set like this
musicctl.set_modes({ 'mpd', 'ncspot' })
generated by LDoc 1.4.6 Last updated 2022-04-14 21:25:28