feat: added binds and window-rules modules
This commit is contained in:
parent
fdf3479b31
commit
c23715f2f1
2 changed files with 222 additions and 0 deletions
65
modules/features/desktop/window-rules.nix
Executable file
65
modules/features/desktop/window-rules.nix
Executable file
|
|
@ -0,0 +1,65 @@
|
|||
_:
|
||||
let
|
||||
windowRules = [
|
||||
{
|
||||
geometry-corner-radius =
|
||||
let
|
||||
radius = 16.0;
|
||||
in
|
||||
{
|
||||
bottom-left = radius;
|
||||
bottom-right = radius;
|
||||
top-left = radius;
|
||||
top-right = radius;
|
||||
};
|
||||
clip-to-geometry = true;
|
||||
draw-border-with-background = false;
|
||||
}
|
||||
{
|
||||
matches = [ { app-id = "kitty"; } ];
|
||||
opacity = 0.95;
|
||||
}
|
||||
{
|
||||
matches = [ { is-floating = true; } ];
|
||||
default-floating-position = {
|
||||
relative-to = "top-left";
|
||||
x = 1720;
|
||||
y = 720;
|
||||
};
|
||||
max-height = 720;
|
||||
max-width = 1720;
|
||||
opacity = 0.95;
|
||||
shadow.enable = true;
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
at-startup = true;
|
||||
title = "btop";
|
||||
}
|
||||
];
|
||||
open-on-output = "DP-1";
|
||||
open-on-workspace = "System";
|
||||
open-maximized = true;
|
||||
}
|
||||
{
|
||||
matches = [ { title = "calculator"; } ];
|
||||
open-floating = true;
|
||||
open-focused = true;
|
||||
}
|
||||
];
|
||||
in
|
||||
{
|
||||
programs.niri.settings = {
|
||||
window-rules = windowRules;
|
||||
layout = {
|
||||
background-color = "transparent";
|
||||
};
|
||||
layer-rules = [
|
||||
{
|
||||
matches = [ { namespace = "^noctalia-wallpaper*"; } ];
|
||||
place-within-backdrop = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue