diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-02-18 19:29:52 +0000 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-02-18 19:29:52 +0000 |
commit | 0231643920ceb3a6cf072f53a932d6b3009b63f8 (patch) | |
tree | 492a609bfe60491a24796f32d9d3b5a3ef0c9640 /.config/eww | |
parent | d264d23ad3cd329bb4ee517e03e9c245c272a438 (diff) |
Eww 0.5.0 changes - eww windows is now eww active-windows and eww list-windows
Diffstat (limited to '.config/eww')
-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 |