mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-26 14:35:58 +01:00
1b8ef75129
Updated the actual package that can be used for correct screensharing
29 lines
1.3 KiB
Markdown
29 lines
1.3 KiB
Markdown
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](https://gist.github.com/PowerBall253/2dea6ddf6974ba4e5d26c3139ffb7580)
|
|
for a great tutorial.
|
|
|
|
## Better screensharing
|
|
|
|
See [the hyprland portal page](../Hyprland-desktop-portal)
|
|
|
|
## 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](https://invent.kde.org/system/xwaylandvideobridge). You can use [this AUR package](https://aur.archlinux.org/packages/xwaylandvideobridge-bin) 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](https://invent.kde.org/system/xwaylandvideobridge/-/issues/1) for more information. For example:
|
|
```ini
|
|
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
|
|
windowrulev2 = noanim,class:^(xwaylandvideobridge)$
|
|
windowrulev2 = nofocus,class:^(xwaylandvideobridge)$
|
|
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
|
|
```
|