hyprland-wiki/pages/Useful Utilities/Screen-Sharing.md
Aqa-Ib 826077bbcc
fix bug caused by xwaylandvideobridge example configuration (#435)
* fix bug

* get the window out of the way

since we are hacking it, may as well add those lines

* oops
2024-01-10 15:02:41 +01:00

1.4 KiB

Screensharing is done through PipeWire on Wayland.

Prerequisites

Make sure you have pipewire and wireplumber installed, enabled and running if you don't have them yet.

Screensharing

Read this amazing gist by PowerBall253 for a great tutorial.

Better screensharing

See the hyprland portal page

XWayland

If your screensharing application is running under XWayland (like Discord, Skype,...), it can only see other XWayland windows and cannot share an entire screen or a Wayland window.

The KDE-team has implemented a workaround for this called xwaylandvideobridge. You can use this AUR package on ArchLinux. Note that Hyprland currently doesn't support the way it tries to hide the main window, so you will have to create some window-rules to achieve the same effect. See this issue for more information. For example:

windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
windowrulev2 = noanim,class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$
windowrulev2 = noblur,class:^(xwaylandvideobridge)$