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