18 lines
422 B
Plaintext
Raw Normal View History

2020-05-09 21:26:23 +02:00
#!/bin/sh
# 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
2021-01-18 15:22:42 +01:00
if playerctl --player=spotify status | grep -q "Playing"; then
playerctl metadata --format "{{ artist }} - {{ title }}"
2021-01-18 15:22:42 +01:00
elif playerctl --player=spotify 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