diff options
Diffstat (limited to '')
| -rw-r--r-- | .config/niri/windows.kdl | 41 |
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 | |||
| 5 | window-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. | ||
| 11 | window-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 | |||
| 21 | window-rule { | ||
| 22 | match app-id=r#"^org\.keepassxc\.KeePassXC$"# | ||
| 23 | |||
| 24 | block-out-from "screen-capture" | ||
| 25 | } | ||
| 26 | |||
| 27 | window-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 | |||
| 36 | window-rule { | ||
| 37 | match app-id=r#"^org\.telegram\.desktop$"# title="Media viewer" | ||
| 38 | |||
| 39 | open-floating true | ||
| 40 | } | ||
| 41 | |||
