# Purpose/Usage
This "hacky" workaround is used for screen sharing between xwayland and wayland windows & screens. For example: screen sharing entire screen in discord.
# The gist
There are 2 options to obtaining this. I have had terrible luck with `xwaylandvideobridge-bin` from the AUR. Going with the flatpak version from kde seems to be more stable. Also need xdg-desktop-portal & pipewire.
## Installation
1) `sudo pacman -Syu`
2) `sudo pacman -S flatpak`
3) **REBOOT**
4) `flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo`
5) `flatpak install kdeapps org.kde.xwaylandvideobridge`
## Usage
- If using flatpak version make sure to set it autostart. On hyprland adding the following to your config will suffice.
- `exec-once = flatpak run org.kde.xwaylandvideobridge`
- Can check if it is running with: `flatpak ps`
- Start screenshare and a portal should pop up. Select the screen you want.
- Select the newly created **APPLICATION** -- should be named something like: Wayland to X Recording
## Troubleshooting
- If no portal is popping up, check they are installed/updated.
- If the bridge window is just blinding white, try to restart the video bridge.