2020-05-09 21:26:23 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-12-21 12:51:42 +01:00
|
|
|
if playerctl metadata --format={{playerName}} | grep -q "spotifyd"; then
|
|
|
|
echo ""
|
|
|
|
else
|
|
|
|
echo ""
|
|
|
|
fi
|
|
|
|
|
|
|
|
# if mpc status | grep -q "playing"; then
|
|
|
|
# mpc | sed "/^volume:/d;s/\\&/&/g;s/\\[playing\\].*//g"
|
|
|
|
# elif mpc status | grep -q "paused"; then
|
|
|
|
# echo ""
|
|
|
|
# else
|
|
|
|
# echo ""
|
|
|
|
# fi
|
|
|
|
|
|
|
|
if playerctl --player=spotifyd status | grep -q "Playing"; then
|
|
|
|
playerctl metadata --format "{{ artist }} - {{ title }}"
|
|
|
|
elif playerctl --player=spotifyd status | grep -q "Paused"; then
|
2020-05-13 15:07:01 +02:00
|
|
|
echo ""
|
2020-05-09 21:26:23 +02:00
|
|
|
else
|
2020-05-13 15:07:01 +02:00
|
|
|
echo ""
|
2020-05-09 21:26:23 +02:00
|
|
|
fi
|