From 6ef2372be6132beaeebffe117b08c01adb0d5f2c Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Sat, 10 Jun 2023 18:31:32 -0700 Subject: [PATCH] Got screen sharing working in a browser --- modules/desktop/sway/default.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/modules/desktop/sway/default.nix b/modules/desktop/sway/default.nix index 49e300b..e968298 100644 --- a/modules/desktop/sway/default.nix +++ b/modules/desktop/sway/default.nix @@ -50,7 +50,20 @@ in { aa.system.fonts.enable = true; - environment.systemPackages = with pkgs; [wl-clipboard]; + environment.systemPackages = with pkgs; [ + wl-clipboard + grim + slurp + xdg-utils + xdg-desktop-portal-wlr + ]; + + # For screen sharing to work + xdg.portal = { + enable = true; + extraPortals = with pkgs; [xdg-desktop-portal-gtk]; + wlr.enable = true; + }; aa.home.dataFile = { ${cfg.wallpaperPath}.source = ./wallpaper.jpg; @@ -60,6 +73,7 @@ in { enable = true; swaynag.enable = true; wrapperFeatures.gtk = true; # so that gtk works properly + systemdIntegration = true; # needed this for screen sharing to work config = { inherit (terminal menu left right up down modifier);