#!/usr/bin/env bash
# Close every eww overlay and reset the animation vars in one shot.
# Entry point for niri's panic bind (Mod+Escape) and any "close everything" need.
# Safe to call anytime — closing a not-open window is a no-op.
set -u

eww update panel-open=false dock-open=false spot-open=false 2>/dev/null
eww close \
  spotlight spot-backdrop \
  dock-menu dock-bg-menu dock-menu-backdrop \
  control-center calendar music sysmon updates panel-backdrop \
  dock 2>/dev/null
