allow to override default player

This commit is contained in:
Artem Tarasov 2024-05-20 20:26:56 +02:00
parent 10aeeb71ad
commit 5a1cef608c
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,7 @@ local wibox = require("wibox")
local gears = require("gears")
local playerctl = {
player_name = 'mpv',
player_name = nil,
}
function playerctl:set_player(name)
@ -191,6 +191,8 @@ local function worker(user_args)
local library_icon = args.library_icon or path_to_icons .. "/symbolic/places/folder-music-symbolic.svg"
local popup_width = args.popup_width or 300
playerctl.player_name = args.default_player or 'mpv'
local icon = wibox.widget {
widget = wibox.widget.imagebox,
image = play_icon