diff options
Diffstat (limited to 'docs/wiki')
| -rw-r--r-- | docs/wiki/Screencasting.md | 13 |
1 files changed, 13 insertions, 0 deletions
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  +### 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/ |
