2021-01-18 15:22:42 +01:00

18 lines
422 B
Bash
Executable File

#!/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
if playerctl --player=spotify status | grep -q "Playing"; then
playerctl metadata --format "{{ artist }} - {{ title }}"
elif playerctl --player=spotify status | grep -q "Paused"; then
echo ""
else
echo ""
fi