summaryrefslogtreecommitdiff
path: root/hm/env/niri/niri.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2026-03-07 22:27:05 +0100
committeradikro <adikro@disroot.org>2026-03-07 22:27:05 +0100
commit11d05469368ecfe533c7720e7f5b624f2f8f19fc (patch)
treec666f76157b6f9158a2faa723efbf10d1d3dab03 /hm/env/niri/niri.nix
parentcacaadb79a73fca27bd8bbc0a33a0713d2379655 (diff)
...
Diffstat (limited to 'hm/env/niri/niri.nix')
-rw-r--r--hm/env/niri/niri.nix63
1 files changed, 55 insertions, 8 deletions
diff --git a/hm/env/niri/niri.nix b/hm/env/niri/niri.nix
index f8e1542..2274259 100644
--- a/hm/env/niri/niri.nix
+++ b/hm/env/niri/niri.nix
@@ -57,13 +57,12 @@ in
};
layout = {
empty-workspace-above-first = true;
- border = {
- width = 2;
- # active = <decoration>;
- };
+ border.enable = false;
focus-ring = {
- width = 2;
- # active = <decoration>;
+ enable = true;
+ width = 3;
+ active.color = "#7fc8ff";
+ inactive.color = "#505050";
};
preset-column-widths = [
{ proportion = 1. / 3.; }
@@ -84,17 +83,65 @@ in
window-rules = [
{
matches = [
- { app-id = "Bitwarden"; }
+ { app-id = "^Bitwarden$"; }
+ { app-id = "^org\\.keepassxc\\.KeePassXC$"; }
];
block-out-from = "screen-capture";
}
+ {
+ matches = [
+ {
+ app-id = "steam";
+ title = "^notificationtoasts_\\d+_desktop$";
+ }
+ ];
+ default-floating-position = {
+ x = 10;
+ y = 10;
+ relative-to = "bottom-right";
+ };
+ }
+ {
+ matches = [ { is-window-cast-target = true; } ];
+
+ focus-ring.active.color = "#f38ba8";
+ shadow = {
+ enable = true;
+ color = "#7d0d2d70";
+ };
+ }
+ {
+ matches = [ { app-id = "^qalculate-gtk$"; } ];
+ open-floating = true;
+
+ # Use default-window-height instead of default-floating-height
+ default-window-height.fixed = 537;
+ default-column-width.fixed = 802;
+
+ default-floating-position = {
+ relative-to = "right";
+ x = 100;
+ y = 0;
+ };
+ }
+ {
+ matches = [ { app-id = "^sober$"; } ];
+ open-fullscreen = true;
+ }
+ ];
+ layer-rules = [
+ {
+ matches = [
+ { namespace = "^notifications$"; }
+ ];
+ block-out-from = "screencast";
+ }
];
gestures.hot-corners.enable = false;
spawn-at-startup = [
{
command = [
"obs"
- "--disable-missing-files-check"
"--startreplaybuffer"
];
}