feat(niri): place-within-backdrop

This commit is contained in:
2025-06-20 21:55:31 +08:00
parent 5e5f2ed1bb
commit 83772d34dd

View File

@@ -39,12 +39,13 @@
{ proportion = 0.66667; } { proportion = 0.66667; }
]; ];
default-column-width.proportion = 0.4; default-column-width.proportion = 0.4;
background-color = "transparent";
}; };
animations = { animations = {
enable = true; enable = true;
slowdown = 1.5; slowdown = 1.5;
workspace-switch.spring = { workspace-switch.kind.spring = {
damping-ratio = 1.0; damping-ratio = 1.0;
stiffness = 1000; stiffness = 1000;
epsilon = 0.0001; epsilon = 0.0001;
@@ -54,6 +55,14 @@
prefer-no-csd = true; prefer-no-csd = true;
hotkey-overlay.skip-at-startup = true; hotkey-overlay.skip-at-startup = true;
layer-rules = [
{
matches = [ { namespace = "^wallpaper$"; } ];
place-within-backdrop = true;
}
];
overview.workspace-shadow.enable = false;
window-rules = [ window-rules = [
{ {
geometry-corner-radius = { geometry-corner-radius = {
@@ -87,6 +96,8 @@
[ "${lib.getExe' pkgs.swaynotificationcenter "swaync"}" ] [ "${lib.getExe' pkgs.swaynotificationcenter "swaync"}" ]
[ [
"${lib.getExe pkgs.swaybg}" "${lib.getExe pkgs.swaybg}"
"-m"
"fill"
"-i" "-i"
(toString ./wallpaper.png) (toString ./wallpaper.png)
] ]