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

ArgumentDescription
[args...]Width and height, optionally followed by x and y position (omit all to print the current window)

Options

OptionDescription
--state <value>Window state: normal, maximized, minimized, fullscreen
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable 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

On this page