From 31eb943599fbc1efc8c46011bb39b0f96f79f535 Mon Sep 17 00:00:00 2001 From: haansn08 Date: Mon, 20 Oct 2025 05:53:03 +0000 Subject: docs: describe screen mirroring with wl-mirror (#2633) * docs: describe screen mirroring with wl-mirror * docs: apply wording suggestions for wl-mirror section * Update docs/wiki/Screencasting.md * Update docs/wiki/Screencasting.md --------- Co-authored-by: Ivan Molodetskikh --- docs/wiki/Screencasting.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs/wiki') diff --git a/docs/wiki/Screencasting.md b/docs/wiki/Screencasting.md index 76a08b45..3c38a01b 100644 --- a/docs/wiki/Screencasting.md +++ b/docs/wiki/Screencasting.md @@ -137,4 +137,17 @@ Here's an example showing a windowed-fullscreen Google Slides [presentation](htt ![Windowed Google Slides presentation, another window showing the presenter view, and another window showing Zoom UI casting the presentation.](https://github.com/user-attachments/assets/b2b49eea-f5a0-4c0a-b537-51fd1949a59d) +### Screen mirroring + +For presentations it can be useful to mirror an output to another. +Currently, niri doesn't have built-in output mirroring, but you can use a third-party tool [`wl-mirror`](https://github.com/Ferdi265/wl-mirror) that mirrors an output to a window. +Note that the command below requires [`jq`](https://jqlang.org/download/) to be installed. +```kdl +binds { + Mod+P repeat=false { spawn-sh "wl-mirror $(niri msg --json focused-output | jq -r .name)"; } +} +``` +Focus the output you want to mirror, press ModP and move the `wl-mirror` window to the target output. +Finally, fullscreen the `wl-mirror` window (by default, ModShiftF). + [OBS]: https://obsproject.com/ -- cgit