From 75cf6a4d67149ebf8952333f95bc58990b8ddb41 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Fri, 11 Oct 2024 15:34:14 +0200 Subject: [PATCH] home/programs/niri: use gtk portals for most things, and gnome for screencast --- home/programs/niri/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/home/programs/niri/default.nix b/home/programs/niri/default.nix index 9a667e5..8f16689 100644 --- a/home/programs/niri/default.nix +++ b/home/programs/niri/default.nix @@ -9,6 +9,19 @@ in { imports = [./binds.nix]; + xdg.portal = { + enable = true; + xdgOpenUsePortal = true; + extraPortals = [pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-gnome pkgs.gnome-keyring]; + config = { + common = { + default = ["gtk"]; + "org.freedesktop.impl.portal.ScreenCast" = ["gnome"]; + "org.freedesktop.impl.portal.Secret" = ["gnome-keyring"]; + }; + }; + }; + programs.niri = { settings = { input.keyboard.xkb = {