{ config, lib, ... }: { config = lib.mkIf config.zaphyra.programs.niri.enable { programs.niri.settings = { layer-rules = [ { matches = [ { namespace = "shaderbg"; } ]; place-within-backdrop = true; } ]; window-rules = [ { shadow.enable = true; matches = [ { is-floating = true; } ]; } { geometry-corner-radius = lib.genAttrs [ "bottom-left" "bottom-right" "top-left" "top-right" ] ( _name: 6.0 ); clip-to-geometry = true; } { matches = [ { at-startup = true; app-id = "^org.gnome.Fractal$"; } { at-startup = true; app-id = "^im.dino.Dino$"; } { at-startup = true; app-id = "^org.gajim.Gajim$"; } ]; default-column-display = "tabbed"; open-on-workspace = "chat"; } { matches = [ { app-id = "firefox$"; } { app-id = "thunderbird$"; } ]; open-maximized = true; } { matches = [ { app-id = "^org.gnome.NautilusPreviewer$"; } ]; open-floating = true; } { matches = [ { app-id = "^thunderbird$"; } ]; open-on-workspace = "mail"; } { matches = [ { app-id = "firefox$"; title = "^Picture-in-Picture$"; } ]; open-floating = true; default-column-width.fixed = 480; default-window-height.fixed = 270; default-floating-position = { x = 32; y = 32; relative-to = "bottom-right"; }; } ]; }; }; }