Sway-displays: interactive output setup with profiles (+ zero-copy mirroring)

2 pointsposted 10 hours ago
by botw44

1 Comments

botw44

10 hours ago

Got tired of manually reconfiguring my outputs every time I moved my laptop between home and work. Existing tools were either broken, abandoned, or way more complex than needed.

So I wrote two small tools:

sway-displays interactive CLI for configuring outputs:

- Setup wizard that walks you through position, rotation, scale

- Save/load profiles (docked, portable, whatever)

- Calculates positions from relative placement (left-of, above, etc.)

sway-mirror zero-copy screen mirroring:

- DMA-BUF GPU-to-GPU transfer, no CPU copy

- Multiple scaling modes (fit, fill, stretch, center)

- Moves workspaces to source output automatically

Both are small, dependency-light, and designed for the "I just want my screens to work" use case.

Happy to take feedback or PRs.