py3status icon indicating copy to clipboard operation
py3status copied to clipboard

playerctl module: hide non-can-play players and use chrome and chromium as default value.

Open valdur55 opened this issue 1 year ago • 1 comments

Proposes improvement for issue #2255.

valdur55 avatar Aug 27 '24 17:08 valdur55

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}]]]"

lasers avatar Sep 01 '24 09:09 lasers

@valdur55 do you want to follow up here before I do a release?

ultrabug avatar Oct 22 '24 10:10 ultrabug

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.

valdur55 avatar Oct 23 '24 20:10 valdur55

Thanks, will make a release soon

ultrabug avatar Oct 24 '24 13:10 ultrabug

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.

valdur55 avatar Oct 24 '24 14:10 valdur55