feat(portal): screensharing with xwindows now possible

using xwaylandvideobridge-cursor-mode-2-git helped getting xwayland windows to show up on discord
This commit is contained in:
Sergio Laín 2023-10-12 12:11:35 +02:00
parent 80b1ebad05
commit b717fd00a4
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# variables # Variables
config=$HOME/.config/hypr config=$HOME/.config/hypr
scripts=$config/scripts scripts=$config/scripts
@ -52,5 +52,6 @@ aw-watcher-afk &
#Launch autostart apps #Launch autostart apps
dex -a -s ~/.config/autostart/ & # Easyeffects, Spotify, Discord and Thunderbird dex -a -s ~/.config/autostart/ & # Easyeffects, Spotify, Discord and Thunderbird
# Other # Screen sharing and portals
$scripts/launch_portals & $scripts/launch_portals &
xwaylandvideobridge &

View file

@ -55,3 +55,7 @@ windowrule = float, keyb-kitty
windowrule = center 1, keyb-kitty windowrule = center 1, keyb-kitty
windowrule = size 35% 80%, keyb-kitty windowrule = size 35% 80%, keyb-kitty
windowrule = size 30% 85%,^(pavucontrol)$ windowrule = size 30% 85%,^(pavucontrol)$
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
windowrulev2 = noanim,class:^(xwaylandvideobridge)$
windowrulev2 = nofocus,class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$