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