From 8d1ac8cdd21da835b63d60b3b0e2399cde040b97 Mon Sep 17 00:00:00 2001 From: Nikolai Papin Date: Fri, 26 Sep 2025 08:58:43 +0300 Subject: [PATCH] feat: rmpc support for muza script --- hypr/scripts/muza.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/hypr/scripts/muza.sh b/hypr/scripts/muza.sh index ccd902c..e75dfa2 100755 --- a/hypr/scripts/muza.sh +++ b/hypr/scripts/muza.sh @@ -1,15 +1,22 @@ +arg=$1 +if [ -z $arg ]; then + arg="ncmpcpp" +fi + +if [ $arg != "ncmpcpp" ] && [ $arg != "rmpc" ]; then + echo "Unsupported music player '$arg'" + exit 1 +fi + kitty --single-instance btop & sleep 0.1 kitty --single-instance cava & sleep 0.1 -#bspwm_resize contract north 250 hyprctl dispatch resizeactive 0 250 sleep 0.1 -#bspwm_resize expand west 100 hyprctl dispatch resizeactive -90 0 hyprctl dispatch movefocus l -ncmpcpp - +exec $arg