feat(app): the recorder window

Run with no command, `komorebi-recorder` opens a small window with Record and
Stop. It is untitled and borderless because komorebi does not manage windows
without a title, so opening it does not move the layout under investigation, and
it keeps itself out of the video (by process name on macOS, with
`WDA_EXCLUDEFROMCAPTURE` on Windows). `komorebi-recorder-gui` is the same
program built for the GUI subsystem on Windows, so that a shortcut opens no
console; both are in the zips and the installer.
This commit is contained in:
LGUG2Z committed 2026-10-27 22:22:56 -07:00
1 parent 05d87908c5
commit 5291a24fd4
15 files changed
+4399 -81

No files matched your search

+10
View File
@@ -102,6 +102,16 @@ the locked file.
The wire protocol is the same on both. The recorder's own binary does not depend on either komorebi's crates.
### The program's own windows
The recorder window and the viewer must not be in the video they are recording, and komorebi must not tile them.
| | macOS | Windows |
|---|---|---|
| left out of the video | by name: every process called `komorebi-recorder` is excluded from the capture | each window asks to be left out of captures with `WDA_EXCLUDEFROMCAPTURE` (Windows 10 version 2004 and later) |
| left alone by komorebi | the windows have no title, which komorebi does not manage | the same, and `KOMOREBI_RECORDER_PROBE_WINDOW=1` makes a window ask komorebi whether it would manage it and write the answer to `komorebi-recorder-window-probe.txt` in the temp directory |
| executables | `komorebi-recorder` | `komorebi-recorder.exe` (console: run commands with this one) and `komorebi-recorder-gui.exe` (no console window) |
## Degraded modes
- `record --no-video` records everything but the screen, on the same clock. It asks the system nothing about displays and
+8
View File
@@ -6,6 +6,7 @@ was the OS doing, at 00:12.5 in the video?" and the other way around.
```
komorebi-recorder record --duration 30 # record without a window
komorebi-recorder # or open the Record / Stop window
```
It is built for the situations where komorebi bugs actually show up: laptops that get docked and undocked, woken with the
@@ -44,6 +45,7 @@ directory; a session recorded on one OS can be investigated on the other. What d
Start komorebi with `komorebi.exe --log-level debug` before recording a bug. (`RUST_LOG=debug` also
prints every dependency's log; `RUST_LOG=komorebi=debug` does not.)
`komorebi-recorder record --no-video` records without the screen.
The recorder window keeps itself out of the video (Windows 10 version 2004 or later).
## Before you record
@@ -53,12 +55,18 @@ prints every dependency's log; `RUST_LOG=komorebi=debug` does not.)
repro, start komorebi with `komorebi --log-level trace` (or `RUST_LOG=komorebi=trace`) first. At the default `info`
level most of what the window manager _decided_ is not in the log.
The recorder window is borderless and untitled on purpose: komorebi does not manage windows without a title, so opening
it does not move your layout around while you are trying to reproduce a layout bug. It is also excluded from the video, as is any other `komorebi-recorder` process.
## Recording
Press **Record**, reproduce the problem, press **Stop**. The window shows live counters, recent events (a display being
unplugged, a wake) and any warnings. The session is written to
`~/Library/Application Support/komorebi/recordings/<UTC timestamp>/` unless you pass `--out`.
With every display ticked, the recorder follows _all_ displays, including ones connected while it is recording. Untick a
display to record only the others.
Headless recording is the same thing without the window; Ctrl-C, `SIGTERM` or `--duration` stops and finalizes it:
```