# Headless mode The headless backend runs without a screen, for tests and quick checks: ```sh neferwl --backend=headless --screenshot /tmp/neferwl-shots WAYLAND_DISPLAY= foot ``` - `/tmp/neferwl-shots/latest.png` shows the current frame, cursor included. A frame that cannot be read back is skipped, never written black. - Every frame is also saved as `frame-NNNNNN.png`, so the directory keeps growing. With several outputs, each writes to `/HEADLESS-/`. - `--timeout 5s` stops NeferWL after 5 seconds. - While the session is locked, the PNG stops updating and keeps the last unlocked frame. See [Session locking](session-lock.md). - The cursor is not drawn on screen. After a layout change, pointer focus updates on the next move. `grim` and recorders also work here; see [Screen capture](capture.md). ## Input scripts `--input `, or `--input -` for stdin, plays one command per line: | Command | Effect | |---|---| | `type ` | Type text | | `key Super+Return` | Press a key, with optional Shift, Ctrl, Alt or Super | | `sleep 1s` | Wait | | `move ` | Move the pointer, in output coordinates | | `click [left\|right\|middle]`, `down