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 <pattern> |
Window title (X11: regex; macOS/Wayland: substring); 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
--titleuses a regex on X11 and substring matching on macOS, Sway, and Hyprland--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-sway,wayland-hyprland,darwin
Window inspection requires only the platform window tool; ImageMagick is not required.