From a4c1235b0ff567b9828001a63872aec996e0f306 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sun, 13 Mar 2022 14:35:29 +0100 Subject: [PATCH] transparent cava --- usr/bin/mb-music | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/usr/bin/mb-music b/usr/bin/mb-music index c0001db..e04850c 100755 --- a/usr/bin/mb-music +++ b/usr/bin/mb-music @@ -12,6 +12,8 @@ case $LANG in RADIOBROWSER="Szukaj stacji online" MPV="Odtwarzaj za pomocą mpv (bez gui)" MPVPLAY="Słuchaj stacji..." + CAVA="Wizualizacja (cava)" + STOP="Wyłącz" ;; *) VOL="Volume Control" @@ -20,13 +22,15 @@ case $LANG in RADIOBROWSER="Search Radio Stations online" MPV="Play with mpv (no gui)" MPVPLAY="Listen to radio..." + CAVA="Visualiser (cava)" + STOP="Stop" ;; esac out+=("^sep($VOL)") 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()") +pgrep -f radio-mpv > /dev/null && NOW="$(<"$NOWPLAY")" out+=("$STOP $NOW,pkill -f radio-mpv") out+=("^sep()") out+=("$MPV,^checkout(mpvradio)") out2+=("^tag(mpvradio)") @@ -40,7 +44,8 @@ out2+=("${name},mb-music play "\""${url}"\"" "\""${name}"\""") done <"$PLAYLIST" out+=("^sep(PyRadio (super+r))") out+=("PyRadio,terminator --geometry=420x440-20-20 -e pyradio") -out+=("Cava,terminator --geometry=420x200-460-20 -e cava") +pgrep -f cavatransparent > /dev/null && out+=("$STOP $CAVA,pkill -f cavatransparent") || out+=("$CAVA,transparent-cava") + out+=("^sep()") out+=("$EDITSTATIONS,xdg-open $PLAYLIST") out+=("$RADIOBROWSER,xdg-open https://www.radio-browser.info")