diff options
| author | Pavel Egorov <[email protected]> | 2025-12-09 18:43:50 +0300 |
|---|---|---|
| committer | Pavel Egorov <[email protected]> | 2025-12-09 18:43:50 +0300 |
| commit | b277dc0a9a0c994d40c2264430e55df70eb801b0 (patch) | |
| tree | 0831e6562187e3437c4806b12f644c9bfa5c2e3c /.config/niri/windows.kdl | |
| parent | b48c6a6e4d103bc30b16ff2b0a3ccfcc019dcdf6 (diff) | |
| download | dotfiles-b277dc0a9a0c994d40c2264430e55df70eb801b0.tar.gz dotfiles-b277dc0a9a0c994d40c2264430e55df70eb801b0.zip | |
[niri] Add named workspaces and more window rules
Diffstat (limited to '')
| -rw-r--r-- | .config/niri/windows.kdl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/niri/windows.kdl b/.config/niri/windows.kdl index 5f5b9d4..98a1e34 100644 --- a/.config/niri/windows.kdl +++ b/.config/niri/windows.kdl | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | workspace "main" | ||
| 2 | workspace "games" | ||
| 3 | |||
| 1 | // Window rules let you adjust behavior for individual windows. | 4 | // Window rules let you adjust behavior for individual windows. |
| 2 | // Find more information on the wiki: | 5 | // Find more information on the wiki: |
| 3 | // https://yalter.github.io/niri/Configuration:-Window-Rules | 6 | // https://yalter.github.io/niri/Configuration:-Window-Rules |
| @@ -19,6 +22,12 @@ window-rule { | |||
| 19 | } | 22 | } |
| 20 | 23 | ||
| 21 | window-rule { | 24 | window-rule { |
| 25 | match app-id=r#"firefox"# title="Choose User Profile" | ||
| 26 | |||
| 27 | open-floating true | ||
| 28 | } | ||
| 29 | |||
| 30 | window-rule { | ||
| 22 | match app-id=r#"^org\.keepassxc\.KeePassXC$"# | 31 | match app-id=r#"^org\.keepassxc\.KeePassXC$"# |
| 23 | 32 | ||
| 24 | block-out-from "screen-capture" | 33 | block-out-from "screen-capture" |
| @@ -39,3 +48,14 @@ window-rule { | |||
| 39 | open-floating true | 48 | open-floating true |
| 40 | } | 49 | } |
| 41 | 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 | } | ||
