configure default portals

This commit is contained in:
Henry Hiles 2026-10-20 15:42:32 -04:00
commit d5017cbd17
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -38,6 +38,21 @@ in
{ {
imports = [ inputs.fht-compositor.nixosModules.default ]; 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 # 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" { environment.etc."xdg/walker/config.toml".source = (pkgs.formats.toml { }).generate "walker.toml" {
force_keyboard_focus = true; force_keyboard_focus = true;
@ -144,6 +159,10 @@ in
action = "run-command"; action = "run-command";
arg = "nautilus"; arg = "nautilus";
}; };
Super-c = {
action = "run-command";
arg = "codium";
};
Super-Down = { Super-Down = {
action = "change-window-proportion"; action = "change-window-proportion";