From: Andrew Lorimer Date: Thu, 14 Apr 2022 11:58:17 +0000 (+1000) Subject: [i3blocks-music] add music symbol X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/a9a84685237e0cd082d3b743aae9f05bee14ed74 [i3blocks-music] add music symbol --- diff --git a/i3blocks-music.pl b/i3blocks-music.pl index b24f6b1..ead4f4d 100755 --- a/i3blocks-music.pl +++ b/i3blocks-music.pl @@ -14,9 +14,9 @@ if ($ARGV[0] =~ "--player=") { } # Check playback status and set appropriate colour -$_ = qx(playerctl status); +$_ = qx(playerctl $player_arg status); if (not m/Playing/) { - print(""); + print("♪ "); } else { print("♪ ");