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