waybar: update widgets
style: add fontawesome as fallback mail: add tooltip with details mediaplayer: add tooltip card: add information about card
This commit is contained in:
parent
8708e3f6f5
commit
2765fdd6cf
6 changed files with 84 additions and 27 deletions
|
@ -14,7 +14,13 @@ logger = logging.getLogger(__name__)
|
|||
def write_output(text, player):
|
||||
logger.info('Writing output')
|
||||
|
||||
m = dict(player.props.metadata)
|
||||
title = m.get("xesam:title", "unknown")
|
||||
artist = ",".join(x for x in m.get("xesam:artist"))
|
||||
album = m.get("xesam:album")
|
||||
tooltip = f"{artist}\n<b>{title}</b>\n<i>{album}</i>"
|
||||
output = {'text': text,
|
||||
'tooltip': tooltip,
|
||||
'class': 'custom-' + player.props.player_name,
|
||||
'alt': player.props.player_name}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue