From d5017cbd178c0b1d90d1a0c5e8c3270fbfe903df Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Tue, 20 Oct 2026 15:42:32 -0400 Subject: [PATCH] configure default portals --- .../quadraticpc/fht-compositor/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/clients/quadraticpc/fht-compositor/default.nix b/clients/quadraticpc/fht-compositor/default.nix index 9a0c01a..0b6f05e 100644 --- a/clients/quadraticpc/fht-compositor/default.nix +++ b/clients/quadraticpc/fht-compositor/default.nix @@ -38,6 +38,21 @@ in { imports = [ inputs.fht-compositor.nixosModules.default ]; + # Prefer the GNOME portal (e.g. Nautilus as the file picker), falling back to GTK. This replaces + # the portal config fht-compositor ships. + xdg.portal.config.fht-compositor = { + default = [ + "gnome" + "gtk" + ]; + + # GNOME's sends them to GNOME Shell, GTK's to any notification daemon + "org.freedesktop.impl.portal.Notification" = [ "gtk" ]; + + # GNOME's needs GNOME Shell, and GTK doesn't have one + "org.freedesktop.impl.portal.ScreenCast" = [ "fht-compositor" ]; + }; + # Take keyboard focus when opened, so you can type into the search straight away environment.etc."xdg/walker/config.toml".source = (pkgs.formats.toml { }).generate "walker.toml" { force_keyboard_focus = true; @@ -144,6 +159,10 @@ in action = "run-command"; arg = "nautilus"; }; + Super-c = { + action = "run-command"; + arg = "codium"; + }; Super-Down = { action = "change-window-proportion";