info
Show window geometry and display server info.
No Bridge Required
This command works with any window — no Tauri bridge needed.
Usage
Options
| Option | Description | Default |
|---|---|---|
-t, --title <regex> |
Window title to match — regex; quote titles with spaces | — |
-w, --window-id <id> |
Platform window id (from list-windows) — overrides --title |
— |
--json |
Output as JSON | — |
One of --title or --window-id is required.
Examples
Text output
JSON output
{
"windowId": "12345678",
"pid": 1234,
"name": "My Tauri App",
"x": 100,
"y": 50,
"width": 1920,
"height": 1080,
"displayServer": "x11"
}
By window id
Notes
- The
--titleflag accepts a regex pattern for matching --window-idskips the title search entirely — take the id fromlist-windows --json(windowIdfield); its format is platform-specific (X11/macOS/Sway numeric, Hyprland hex0x…)--window-id(platform/OS window) is unrelated to--window-label(Tauri webview label, a bridge concept)- Window geometry includes decoration (title bar, borders)
- Display server is one of:
x11,wayland,darwin