playerctl module: hide non-can-play players and use chrome and chromium as default value.
Proposes improvement for issue #2255.
Is it fixable with format_player?
# Hide on empty title, no player.
format_player = "[\?if=title [\?color=status [\?if=status=Playing > ][\?if=status=Paused \|\| ]"
format_player += "[\?if=status=Stopped .. ][[{artist}][\?soft - ]{title}]]]"
@valdur55 do you want to follow up here before I do a release?
Oh no, I totaly forgot this thread.
I tested different desktop envs capabilities to handle this issue. KDE only showed playing media players Xfce showing m3edia players as is Mate -no mpris status in sound menu Gnome (https://extensions.gnome.org/extension/4928/mpris-label/) showed playing/paused media players.
Looks like winner is solution to hide paused media players, but there is one catch. If module supports to stop media player then it is unexpected to hide stopped media player. So looks like most pratical solution is to hide all non can_play media players.
@lasers your format_player magic didn't work for me. Player with media didn't show up.
Thanks, will make a release soon
Hey. Actually looks like I should drop also same parameter on mpris side, so it will hide all non can_play media players by default. I will make pr for that ASAP when I am at home.
Edit: already release. So till the next time. It isn't blocker.
Btw in conclusion. There is no new parameter, just hiding all players with can_play = False property.