2023-02-08 17:12:54 -03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PLAYERCTL="playerctl --ignore-player=mpd"
|
|
|
|
|
2023-09-12 00:43:56 -03:00
|
|
|
test "$(LC_ALL=C $PLAYERCTL status)" = "Playing" \
|
|
|
|
&& printf " %s" "$($PLAYERCTL metadata title)" \
|
|
|
|
&& test -n "$($PLAYERCTL metadata artist)" \
|
|
|
|
&& printf " - %s" "$($PLAYERCTL metadata artist)"
|
2023-02-08 17:12:54 -03:00
|
|
|
|
|
|
|
echo ""
|