-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
player-mpris-tail.py does not print icon-none on startup. #389
Comments
Thats the awesome work of @Cybolic. |
I need to clean up my local copy of this repo before I submit a PR, but does this solve the issue? --- a/polybar-scripts/player-mpris-tail/player-mpris-tail.py
+++ b/polybar-scripts/player-mpris-tail/player-mpris-tail.py
@@ -138,7 +138,7 @@ class PlayerManager:
if current_player != None:
_printFlush(self.player_states[current_player.bus_name])
else:
- _printFlush(ICON_STOPPED)
+ _printFlush(ICON_NONE)
else:
self.print_queue.append([status, player]) |
It does solve another kind of issue when the player stops and the stop icon is displayed instead of none, but that is not the issue I'm reporting. My issue is that when the script starts up no players are around at all. |
demo.mp4This is a demo with @Cybolic 's patch applied. As you can see, the status only starts rolling in after chromium has started playing. Before that, it's empty. |
The script doesn't display anything when no player is connected initially.
--icon-none
will only be displayed after at least one player has connected and disconnected, as the code responsible for it is put in removePlayer().I currently have this workaround to make it work:
If this is the correct way, I can PR it.
If it's wrong and there's already some magical polybar way to do it, please point me to it.
The text was updated successfully, but these errors were encountered: