From e913a0f88d88cf46b2a94342c166154315998ea1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 11 Jun 2025 11:28:36 +0200 Subject: [PATCH] made togglebar per monitor now work --- desktopenvs/hyprland/scripts/togglebar.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktopenvs/hyprland/scripts/togglebar.sh b/desktopenvs/hyprland/scripts/togglebar.sh index 0cf9957..c7b2360 100755 --- a/desktopenvs/hyprland/scripts/togglebar.sh +++ b/desktopenvs/hyprland/scripts/togglebar.sh @@ -10,7 +10,7 @@ GTK_THEME=cyberqueer monitorsum=$(hyprctl monitors | grep ID | wc -l) -actmon=$(hyprctl monitors | grep -B12 "focused: yes" | head -n1 | cut -d'(' -f 2 | cut -d' ' -f 2 | cut -d')' -f 1) +actmon=$(hyprctl monitors | grep -B11 "focused: yes" | head -n1 | cut -d'(' -f 2 | cut -d' ' -f 2 | cut -d')' -f 1) statecon=$(eww active-windows | grep "bar$actmon") #notify-send $statecon if [ "$statecon" != '' ]; then @@ -18,6 +18,7 @@ if [ "$statecon" != '' ]; then for i in $(seq 1 $monitorsum); do declare -i curmon=$i-1 + echo $actmon $curmon if [ "$curmon" == "$actmon" ]; then /usr/bin/eww open --toggle bar$curmon fi