Screen sharing on Wayland + Gnome

I've had to set this up a few times already this year, so I'm going to put down the steps that currently work for me.

  1. Install pipewire
  2. Install libpipewire02 1 2
  3. Enable screen sharing in gsettings: gsettings set org.gnome.mutter experimental-features "['screen-cast', 'remote-desktop']"
  4. Ensure you have xdg-desktop-portal and xdg-desktop-portal-gtk installed 3
  5. Enable pipewire in systemd: systemctl enable --now pipewire

If you're on Manjaro, there's a manjaro-pipewire package that replaces your audio stack with pipewire plugins as well.

  1. Chromium uses an older version of Pipewire↩
  2. libpipewire02 is the name of the package in the Arch repositories. It may have a different name in your distro's repositories.↩
  3. You can check with your package manager↩