mirror of
https://github.com/EdenQwQ/nixos.git
synced 2026-02-22 12:55:33 +08:00
87 lines
1.9 KiB
Nix
87 lines
1.9 KiB
Nix
{ pkgs, config, ... }:
|
|
with config.lib.stylix.colors.withHashtag;
|
|
let
|
|
extraConfig =
|
|
# kdl
|
|
''
|
|
blur {
|
|
passes 3
|
|
offset 3
|
|
noise 0.02
|
|
saturation 1.5
|
|
}
|
|
window-rule {
|
|
background-effect {
|
|
xray true
|
|
blur {
|
|
on
|
|
}
|
|
}
|
|
}
|
|
layer-rule {
|
|
match namespace="launcher"
|
|
background-effect {
|
|
xray false
|
|
blur {
|
|
on
|
|
}
|
|
}
|
|
}
|
|
layer-rule {
|
|
match namespace="noctalia-bar-content-*"
|
|
background-effect {
|
|
xray false
|
|
blur {
|
|
on
|
|
}
|
|
}
|
|
}
|
|
|
|
recent-windows {
|
|
open-delay-ms 150
|
|
|
|
highlight {
|
|
active-color "${base0E}aa"
|
|
urgent-color "${base08}aa"
|
|
padding 30
|
|
corner-radius 20
|
|
}
|
|
|
|
previews {
|
|
max-height 480
|
|
max-scale 0.5
|
|
}
|
|
|
|
binds {
|
|
Alt+Tab { next-window; }
|
|
Alt+Shift+Tab { previous-window; }
|
|
Alt+grave { next-window filter="app-id"; }
|
|
Alt+Shift+grave { previous-window filter="app-id"; }
|
|
|
|
Mod+Tab { next-window; }
|
|
Mod+Shift+Tab { previous-window; }
|
|
Mod+grave { next-window filter="app-id"; }
|
|
Mod+Shift+grave { previous-window filter="app-id"; }
|
|
}
|
|
}
|
|
'';
|
|
finalNiriConfig =
|
|
builtins.replaceStrings
|
|
[
|
|
# "layout {"
|
|
]
|
|
[
|
|
# ''
|
|
# layout {
|
|
# blur {
|
|
# on
|
|
# }
|
|
# ''
|
|
]
|
|
config.programs.niri.finalConfig
|
|
+ "\n"
|
|
+ extraConfig;
|
|
in
|
|
{
|
|
home.file.".config/niri/config-override.kdl".text = finalNiriConfig;
|
|
}
|