hyprland-wiki/pages/Useful Utilities/Screen-Sharing.md
Daniel Kusai 83cf1b2a7f
Added a windowrulev2 to Screen-Sharing.md (#888)
This window rule is added to xwaylandvideobridge to prevent it being focused. This is a recommendation to users who use the mentioned package.
2024-11-28 23:44:30 +00:00

1.5 KiB

weight title
4 Screen sharing

Screensharing is done through PipeWire on Wayland.

Prerequisites

Make sure you have pipewire, wireplumber and xdg-desktop-portal-hyprland installed, enabled and running if you don't have them yet.

Screensharing

Read this amazing gist by Bruno Ancona Sala for a great tutorial.

XWayland

If your screensharing application is running under XWayland (like Discord or 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 Arch Linux. 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, class:^(xwaylandvideobridge)$
windowrulev2 = noanim, class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus, class:^(xwaylandvideobridge)$
windowrulev2 = maxsize 1 1, class:^(xwaylandvideobridge)$
windowrulev2 = noblur, class:^(xwaylandvideobridge)$
windowrulev2 = nofocus, class:^(xwaylandvideobridge)$