diff options
Diffstat (limited to '.config/niri/windows.kdl')
| -rw-r--r-- | .config/niri/windows.kdl | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/.config/niri/windows.kdl b/.config/niri/windows.kdl new file mode 100644 index 0000000..44410d3 --- /dev/null +++ b/.config/niri/windows.kdl | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | workspace "main" | ||
| 2 | workspace "games" | ||
| 3 | |||
| 4 | // Window rules let you adjust behavior for individual windows. | ||
| 5 | // Find more information on the wiki: | ||
| 6 | // https://yalter.github.io/niri/Configuration:-Window-Rules | ||
| 7 | |||
| 8 | window-rule { | ||
| 9 | geometry-corner-radius 12 | ||
| 10 | clip-to-geometry true | ||
| 11 | } | ||
| 12 | |||
| 13 | // Open the Firefox picture-in-picture player as floating by default. | ||
| 14 | window-rule { | ||
| 15 | // This app-id regular expression will work for both: | ||
| 16 | // - host Firefox (app-id is "firefox") | ||
| 17 | // - Flatpak Firefox (app-id is "org.mozilla.firefox") | ||
| 18 | match app-id=r#"firefox$"# title="^Picture-in-Picture$" | ||
| 19 | |||
| 20 | open-floating true | ||
| 21 | default-floating-position x=32 y=32 relative-to="bottom-right" | ||
| 22 | } | ||
| 23 | |||
| 24 | window-rule { | ||
| 25 | match app-id=r#"firefox"# title="Choose User Profile" | ||
| 26 | |||
| 27 | open-floating true | ||
| 28 | } | ||
| 29 | |||
| 30 | window-rule { | ||
| 31 | match app-id=r#"^org\.keepassxc\.KeePassXC$"# | ||
| 32 | |||
| 33 | block-out-from "screen-capture" | ||
| 34 | } | ||
| 35 | |||
| 36 | window-rule { | ||
| 37 | match app-id=r#"^org\.telegram\.desktop$"# | ||
| 38 | exclude app-id=r#"^org\.telegram\.desktop$"# title="Media viewer" | ||
| 39 | |||
| 40 | default-column-width { | ||
| 41 | fixed 900 | ||
| 42 | } | ||
| 43 | } | ||
| 44 | |||
| 45 | window-rule { | ||
| 46 | match app-id=r#"^org\.telegram\.desktop$"# title="Media viewer" | ||
| 47 | |||
| 48 | open-floating true | ||
| 49 | } | ||
| 50 | |||
| 51 | window-rule { | ||
| 52 | match app-id=r#"steam"# | ||
| 53 | |||
| 54 | open-on-workspace "games" | ||
| 55 | } | ||
| 56 | |||
| 57 | window-rule { | ||
| 58 | match app-id=r#"steam"# title="Steam" | ||
| 59 | |||
| 60 | open-maximized true | ||
| 61 | } | ||
| 62 | |||
| 63 | window-rule { | ||
| 64 | match app-id=r#"steam"# title="Friends List" | ||
| 65 | |||
| 66 | default-column-width { | ||
| 67 | fixed 500 | ||
| 68 | } | ||
| 69 | } | ||
