From db6f370c46f04508e13699522f4dbf9fd50d2c3f Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Mon, 21 Aug 2023 22:18:07 +0200 Subject: [PATCH] Screen sharing!! --- modules/desktop/sway.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/desktop/sway.nix b/modules/desktop/sway.nix index bcc9ac1..d2ed96b 100644 --- a/modules/desktop/sway.nix +++ b/modules/desktop/sway.nix @@ -285,8 +285,14 @@ wtype # xdotool for wayland ]; - # Allow sharing screen - #xdg.portal.wlr.enable = true; + # xdg portal allows applications secury access to resources outside their sandbox. + # In particular, this allows screen sharing on Wayland via PipeWire and file open/save dialogues in Firefox. + # https://wiki.archlinux.org/title/XDG_Desktop_Portal + # https://mozilla.github.io/webrtc-landing/gum_test.html + xdg.portal = { + enable = true; + wlr.enable = true; + }; hardware.opengl = { enable = true;