mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
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 <yalterz@gmail.com>
This commit is contained in:
@@ -137,4 +137,17 @@ Here's an example showing a windowed-fullscreen Google Slides [presentation](htt
|
||||
|
||||

|
||||
|
||||
### 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 <kbd>Mod</kbd><kbd>P</kbd> and move the `wl-mirror` window to the target output.
|
||||
Finally, fullscreen the `wl-mirror` window (by default, <kbd>Mod</kbd><kbd>Shift</kbd><kbd>F</kbd>).
|
||||
|
||||
[OBS]: https://obsproject.com/
|
||||
|
||||
Reference in New Issue
Block a user