From 1caa0314e120e8cf8ff3517753e2ad2938313375 Mon Sep 17 00:00:00 2001 From: genofire Date: Sat, 13 Nov 2021 22:07:35 +0100 Subject: [PATCH] nixos: fix sway on xdg.portal.wlr screensharing --- nixos/desktop-sway.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/desktop-sway.nix b/nixos/desktop-sway.nix index f972910..2ae96e5 100644 --- a/nixos/desktop-sway.nix +++ b/nixos/desktop-sway.nix @@ -33,6 +33,14 @@ slurp ]; }; + xdg.portal.wlr = { + enable = true; + settings.screencast = { + chooser_type = "simple"; + chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or"; + }; + }; + # done my sway: # security.pam.services.swaylock = {}; # hardware.opengl.enable = true;