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";