Remove song name when you stop mpd

This commit is contained in:
Nise Void 2020-05-15 11:17:04 +02:00
parent e0300868af
commit a6c45404d1
Signed by: NiseVoid
GPG Key ID: FBA14AC83EA602F3

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
while (true); do while (true); do
SONG=
if [ "$(mpc | wc -l)" -eq "3" ]; then if [ "$(mpc | wc -l)" -eq "3" ]; then
SONG=$(mpc | head -1)" | " SONG=$(mpc | head -1)" | "
if [ "$(mpc | grep '\[paused\]' | wc -l)" -eq "1" ]; then if [ "$(mpc | grep '\[paused\]' | wc -l)" -eq "1" ]; then