Browser
bl window
Get or set the OS browser window size, position, or state
Get or set the OS browser window size, position, or state
Usage
bl window [args...] [OPTIONS]Arguments
| Argument | Description |
|---|---|
[args...] | Width and height, optionally followed by x and y position (omit all to print the current window) |
Options
| Option | Description |
|---|---|
--state <value> | Window state: normal, maximized, minimized, fullscreen |
--headless | Hide browser window (visible by default) |
--json | Output as JSON |
--session <value> | Run this command in the named session (env: BL_SESSION; default: "default") |
Global options
| Option | Description |
|---|---|
-v, --verbose | Enable debug logging |
Examples
bl window
# {"state":"normal","x":0,"y":25,"width":1280,"height":720}
bl window 1920 1080
# Set window to 1920x1080
bl window 1920 1080 0 0
# Set window to 1920x1080 at position (0, 0)
bl window --state maximized
# Maximize the window