wl-mirror
- a simple Wayland output mirror client
wl-mirror
attempts to provide a solution to sway's lack of output mirroring by mirroring an output onto a client surface.
This project is currently a working prototype, but work is still ongoing.
Features
- Mirror an output onto a resizable window
- Mirror an output onto another output by fullscreening the window
- Reacts to changes in output scale
- Preserves aspect ratio
Usage
usage: wl-mirror [options]
Dependencies
CMake
libwayland-client
libwayland-egl
libEGL
libGLESv2
wayland-scanner
Building
- Install Dependencies
- Clone Submodules
- Run
cmake -B build
- Run
make -C build
Files
src/main.c
: main entrypointsrc/wayland.c
: Wayland andxdg_surface
boilerplatesrc/egl.c
: EGL boilerplatesrc/mirror.c
: output mirroring code