From 71a2a04ab446fecb874f890eedae876eccf056c0 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sat, 20 Nov 2021 02:16:21 +0100 Subject: [PATCH] mb-music --- usr/bin/mb-music | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usr/bin/mb-music b/usr/bin/mb-music index 3767c54..c0001db 100755 --- a/usr/bin/mb-music +++ b/usr/bin/mb-music @@ -10,12 +10,16 @@ case $LANG in RADIO="Radio Internetowe" EDITSTATIONS="Edytuj listę stacji" RADIOBROWSER="Szukaj stacji online" + MPV="Odtwarzaj za pomocą mpv (bez gui)" + MPVPLAY="Słuchaj stacji..." ;; *) VOL="Volume Control" RADIO="Internet Radio" EDITSTATIONS="Edit stations list" RADIOBROWSER="Search Radio Stations online" + MPV="Play with mpv (no gui)" + MPVPLAY="Listen to radio..." ;; esac @@ -24,8 +28,9 @@ out+=("Pavucontrol (super+v),pavucontrol") out+=("^sep($RADIO)") pgrep -f radio-mpv > /dev/null && NOW="$(<"$NOWPLAY")" out+=("Stop $NOW,pkill -f radio-mpv") out+=("^sep()") -out+=("Play with mpv (no gui),^checkout(mpvradio)") +out+=("$MPV,^checkout(mpvradio)") out2+=("^tag(mpvradio)") +out2+=("^sep($MPVPLAY)") #mapfile -t stations < "$PLAYLIST" while IFS=$'\r\n' read -r line do