Make screenshare work in wayland
[UPDATE]
fuck it, why the fuck do I need to pull pipewire and wireplumber and 1024 other
dependencies only for a fucking screensharing to work? This pipewire thing is
also trying to take control of audio. I DON’T FUCKING NEED IT THANKS! .
Can’t we just have something that do one thing and one thing well?
Just do this instead, use v4l2loopback
and wf-recorder, set up a virtual webcam!
sudo modprobe v4l2loopback exclusive_caps=1 card_label=VirtualVideoDevice
wf-recorder --muxer=v4l2 --codec=rawvideo --pixel-format yuv420p \
--force-yuv --file=$(ls /dev/video* | tail -n1)
original post below
(under Archlinux/sway) ..
Packages to install:
xdg-desktop-portal
xdg-desktop-portal-wlr
- optionally
wireplumber
ENV to set:
export XDG_CURRENT_DESKTOP=sway
export QT_QPA_PLATFORM=wayland
# or put this in sway config
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
Programs to run
pipewire
/usr/lib/xdg-desktop-portal-wlr -p BGRx
/usr/lib/xdg-desktop-portal
wireplumber
[+] click to leave a comment [+]
>> SEND COMMENT <<