forge
Explore
Log in

Don't you dare go Hollow

Describe screen mirroring with wl-mirror (#2633)

Browse files at this commit

31eb943599fbc1efc8c46011bb39b0f96f79f535Unverifiedhaansn08 and Ivan MolodetskikhParent: 137b87b
  • docs
    • describe screen mirroring with wl-mirror (#2633)
Show full message
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

---------
docs/wiki/Screencasting.mdmodified+13 -0
@@ -137,4 +137,17 @@ Here's an example showing a windowed-fullscreen Google Slides [presentation](htt
137137
138138 ![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)
139139
140+### Screen mirroring
141+
142+For presentations it can be useful to mirror an output to another.
143+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.
144+Note that the command below requires [`jq`](https://jqlang.org/download/) to be installed.
145+```kdl
146+binds {
147+ Mod+P repeat=false { spawn-sh "wl-mirror $(niri msg --json focused-output | jq -r .name)"; }
148+}
149+```
150+Focus the output you want to mirror, press <kbd>Mod</kbd><kbd>P</kbd> and move the `wl-mirror` window to the target output.
151+Finally, fullscreen the `wl-mirror` window (by default, <kbd>Mod</kbd><kbd>Shift</kbd><kbd>F</kbd>).
152+
140153 [OBS]: https://obsproject.com/