Describe screen mirroring with wl-mirror (#2633)
Browse files at this commit- docs
- describe screen mirroring with wl-mirror (#2633)
1 changed file +13 -0
- docs/wiki/Screencasting.md +13 -0
docs/wiki/Screencasting.mdmodified+13 -0
| @@ -137,4 +137,17 @@ Here's an example showing a windowed-fullscreen Google Slides [presentation](htt | ||
| 137 | 137 | |
| 138 | 138 |  |
| 139 | 139 | |
| 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 | + | |
| 140 | 153 | [OBS]: https://obsproject.com/ |