12 lines
701 B
Bash
Executable File
12 lines
701 B
Bash
Executable File
#!/bin/sh
|
|
|
|
player_status=$(playerctl --player=spotify status 2> /dev/null)
|
|
|
|
if [ "$player_status" = "Playing" ]; then
|
|
echo "ﱘ $(playerctl --player=spotify metadata artist) - $(playerctl --player=spotify metadata title) %{A1:playerctl --player=spotify previous:}玲%{A} %{A1:playerctl --player=spotify play-pause:} %{A} %{A1:playerctl --player=spotify next:}怜%{A}"
|
|
elif [ "$player_status" = "Paused" ]; then
|
|
echo "ﱘ $(playerctl --player=spotify metadata artist) - $(playerctl --player=spotify metadata title) %{A1:playerctl --player=spotify previous:}玲%{A} %{A1:playerctl --player=spotify play-pause:} 契%{A} %{A1:playerctl --player=spotify next:}怜%{A}"
|
|
else
|
|
echo ""
|
|
fi
|