launch
Open a desktop app by running a Hyprland command, optionally placing its window on a chosen workspace or in the background while waiting for it to appear.
Instructions
Open an app: run command via Hyprland exec. Optional workspace placement
(silent, works even for single-instance apps like browsers, whose
window gets moved after it appears) and wait_s (1-30, default 8;
raise for slow apps). Without workspace, the app opens silently on
the next of the agent's own workspaces (HYPRUSE_AGENT_WORKSPACES, 99
down to 90 by default) that is not on screen, so the agent can work on
it in the background; background=false opens it on the human's
workspace instead. It waits for its own window (one on that workspace,
or of the program's own class), never one the human opens meanwhile.
An app that is already running opens its window from the running
process, on the human's screen, before it is moved: the note says so.
Returns the new window's address/class/title/workspace, or a timeout
note.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_s | No | ||
| command | Yes | ||
| workspace | No | ||
| background | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |