waybar: update configs

- waybar: rename to start_waybar.sh
- waybar_card: minor formatting in tooltip
- waybar_mediaplayer: add icons to tooltip
This commit is contained in:
Konstantin Koslowski 2021-05-14 12:03:16 +02:00
parent 3d56ea7e62
commit 711c9a31f9
6 changed files with 39 additions and 18 deletions

View file

@ -9,9 +9,8 @@ fi
STYLE=$CONFIG_DIR/style.css
# Terminate already running bar instances
pkill -SIGUSR2 -x waybar
if [ $? -ne 0 ]; then
waybar -c $CONFIG -s $STYLE
fi
# pkill -SIGUSR2 -x waybar
pkill -x waybar
# execute new instance
waybar -c $CONFIG -s $STYLE

View file

@ -8,7 +8,7 @@ tooltip=""
alt="missing"
ret=$($CMD 2> /dev/null)
if [ $? -eq 0 ]; then
tooltip="S/N: $(echo $ret | grep -oE 'Serial number[.:0-9 ]*' | grep -oE '[0-9]*')"
tooltip="<b>S/N</b> $(echo $ret | grep -oE 'Serial number[.:0-9 ]*' | grep -oE '[0-9]*')"
alt="available"
fi

View file

@ -18,7 +18,7 @@ def write_output(text, player):
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>"
tooltip = f"{artist}\n<b>{title}</b>\n{album}"
output = {'text': text,
'tooltip': tooltip,
'class': 'custom-' + player.props.player_name,