From c3b51045b81e322c39b4ea8ab08b5e2b46d9ceb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Mon, 5 Feb 2024 19:01:16 +0100 Subject: [PATCH] fix(sway): Update portal preferences The wlr portal is missing a lot of functions --- nixos/gui/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nixos/gui/default.nix b/nixos/gui/default.nix index 7a0af1b..841c12f 100644 --- a/nixos/gui/default.nix +++ b/nixos/gui/default.nix @@ -54,8 +54,12 @@ in xdg.portal.enable = true; xdg.portal.wlr.enable = true; xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; - xdg.portal.config.preferred.default = "wlr"; # Default to wlr - xdg.portal.config.preferred."org.freedesktop.impl.portal.FileChooser" = "gtk"; # But choose files with "gtk" + # Default to the gtk portal + xdg.portal.config.preferred.default = "gtk"; + # Use wlr for screenshots and screen recording + xdg.portal.config.preferred."org.freedesktop.impl.portal.Screenshot" = "wlr"; + xdg.portal.config.preferred."org.freedesktop.impl.portal.ScreenCast" = "wlr"; + # Consider using darkman like upstream hardware.opengl.enable = true; hardware.uinput.enable = true;