wait_for_window
Pause until a Hyprland window, same-process popup, or dialog appears, then return its app state. Use after actions expected to open new windows or dialogs.
Instructions
Wait for a Hyprland window or same-process related popup/dialog to appear, then return its app state. Use after actions expected to open dialogs or new windows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | App name, Hyprland class/title, pid, or address:0x... selector. | |
| class | No | Window class substring to wait for. | |
| title | No | Window title substring to wait for. | |
| timeout | No | Seconds to wait. Defaults to 5; capped at 30. | |
| related_to | No | Root app/window selector whose related popup/dialog should appear. |