diff options
-rwxr-xr-x | .config/eww/scripts/bar-toggle.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/eww/scripts/bar-toggle.sh b/.config/eww/scripts/bar-toggle.sh index 2b55ff0..aedc8fd 100755 --- a/.config/eww/scripts/bar-toggle.sh +++ b/.config/eww/scripts/bar-toggle.sh @@ -3,8 +3,8 @@ monitors=$(hyprctl monitors -j | jq '.[] | .id') for i in ${monitors}; do active_monitor=$(hyprctl -j activeworkspace | grep 'monitorID' | tr -dc '0-9\n') - bar=$(eww windows | grep "*bar$i") - if [ "$active_monitor" == "$i" ] && [ "$bar" == "*bar$i" ]; then + bar=$(eww active-windows | grep "bar$i") + if [ "$active_monitor" == "$i" ] && [ "$bar" == "bar$i: bar$i" ]; then eww close bar$i elif [ "$active_monitor" == "$i" ]; then eww open bar$i |