modularize niri config

This commit is contained in:
Alexander Navarro 2026-01-08 14:49:09 -03:00
parent 272aadbda3
commit efbbe37a30
6 changed files with 436 additions and 502 deletions

View file

@ -0,0 +1,53 @@
window-rule {
// This regular expression is intentionally made as specific as possible,
// since this is the default config, and we want no false positives.
// You can get away with just app-id="wezterm" f you want.
match app-id="^org\\.wezfurlong\\.wezterm$"
default-column-width {
}
}
// Floatin Windows
window-rule {
match app-id="firefox$" title="^Picture-in-Picture$"
match app-id="^brave-.*-Default$"
// Extensions popup open-floating true
}
// Full width window
window-rule {
match app-id="beekeeper-studio"
open-maximized true
}
window-rule {
match app-id="^org\\.keepassxc\\.KeePassXC$"
match app-id="^org\\.gnome\\.World\\.Secrets$"
// block-out-from "screen-capture"
// Use this instead if you want them visible on third-party screenshot tools.
block-out-from "screencast"
}
window-rule {
match app-id="brave-browser"
match at-startup=true
default-column-width {
proportion 0.5
}
}
window-rule {
match title="^Meet: .*" app-id="brave-browser"
open-floating true
}
window-rule {
geometry-corner-radius 4
clip-to-geometry true
}
layer-rule {
match namespace="kitty-quick-access"
geometry-corner-radius 12
shadow {
on
spread 10
softness 20
offset x=-10 y=10
}
}