From 0231643920ceb3a6cf072f53a932d6b3009b63f8 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sun, 18 Feb 2024 19:29:52 +0000 Subject: Eww 0.5.0 changes - eww windows is now eww active-windows and eww list-windows --- .config/eww/scripts/bar-toggle.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/eww') 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 -- cgit v1.2.3