summaryrefslogtreecommitdiffstats
path: root/.config/niri/windows.kdl
diff options
context:
space:
mode:
authorPavel Egorov <[email protected]>2025-12-09 01:16:07 +0300
committerPavel Egorov <[email protected]>2025-12-09 01:16:07 +0300
commit469f7669b2002ea6378c311297fa5d4c90a02c1d (patch)
treef6f67a65c6e731fb525c98eb89780e8eb44be228 /.config/niri/windows.kdl
parentf15826037ec06e0464ea91b5d618a5523aaf232a (diff)
downloaddotfiles-469f7669b2002ea6378c311297fa5d4c90a02c1d.tar.gz
dotfiles-469f7669b2002ea6378c311297fa5d4c90a02c1d.zip
[niri] Set some window rules
Diffstat (limited to '.config/niri/windows.kdl')
-rw-r--r--.config/niri/windows.kdl41
1 files changed, 41 insertions, 0 deletions
diff --git a/.config/niri/windows.kdl b/.config/niri/windows.kdl
new file mode 100644
index 0000000..5f5b9d4
--- /dev/null
+++ b/.config/niri/windows.kdl
@@ -0,0 +1,41 @@
1// Window rules let you adjust behavior for individual windows.
2// Find more information on the wiki:
3// https://yalter.github.io/niri/Configuration:-Window-Rules
4
5window-rule {
6 geometry-corner-radius 12
7 clip-to-geometry true
8}
9
10// Open the Firefox picture-in-picture player as floating by default.
11window-rule {
12 // This app-id regular expression will work for both:
13 // - host Firefox (app-id is "firefox")
14 // - Flatpak Firefox (app-id is "org.mozilla.firefox")
15 match app-id=r#"firefox$"# title="^Picture-in-Picture$"
16
17 open-floating true
18 default-floating-position x=32 y=32 relative-to="bottom-right"
19}
20
21window-rule {
22 match app-id=r#"^org\.keepassxc\.KeePassXC$"#
23
24 block-out-from "screen-capture"
25}
26
27window-rule {
28 match app-id=r#"^org\.telegram\.desktop$"#
29 exclude app-id=r#"^org\.telegram\.desktop$"# title="Media viewer"
30
31 default-column-width {
32 fixed 900
33 }
34}
35
36window-rule {
37 match app-id=r#"^org\.telegram\.desktop$"# title="Media viewer"
38
39 open-floating true
40}
41