Make screenshare work in wayland

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 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

/usr/lib/xdg-desktop-portal-wlr -p BGRx 
[+] click to leave a comment [+]
the comment system on this blog works via email. The button
below will generate a mailto: link based on this page's url 
and invoke your email client - please edit the comment there!

[optional] even better, encrypt the email with my public key

- don't modify the subject field
- specify a nickname, otherwise your comment will be shown as   
- your email address will not be disclosed
- you agree that the comment is to be made public.
- to take down a comment, send the request via email.