diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-19 15:20:03 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-19 18:29:13 +0400 |
| commit | c61361de3ca4484387f39b067eadc612908560eb (patch) | |
| tree | 0fc6f30df529c3ac4f7151e314e4d9548bc934bf /resources | |
| parent | 3963f537a4182dbcd8e1e2f262ee105473facc56 (diff) | |
| download | niri-c61361de3ca4484387f39b067eadc612908560eb.tar.gz niri-c61361de3ca4484387f39b067eadc612908560eb.tar.bz2 niri-c61361de3ca4484387f39b067eadc612908560eb.zip | |
Implement window rule reloading and min/max size rules
Diffstat (limited to 'resources')
| -rw-r--r-- | resources/default-config.kdl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/resources/default-config.kdl b/resources/default-config.kdl index 6b34e2ff..014135fa 100644 --- a/resources/default-config.kdl +++ b/resources/default-config.kdl @@ -362,6 +362,8 @@ animations { exclude app-id=r#"\.unwanted\."# // Here are the properties that you can set on a window rule. + // These properties apply once, when a window first opens. + // You can override the default column width. default-column-width { proportion 0.75; } @@ -377,6 +379,20 @@ animations { open-fullscreen true // You can also set this to false to prevent a window from opening fullscreen. // open-fullscreen false + + // The following properties apply dynamically while a window is open. + + // You can amend the window's minimum and maximum size in logical pixels. + // Keep in mind that the window itself always has a final say in its size. + // These values instruct niri to never ask the window to be smaller than + // the minimum you set, or to be bigger than the maximum you set. + min-width 100 + max-width 200 + min-height 300 + // Caveat: max-height will only apply to automatically-sized windows + // if it is equal to min-height. Either set this equal to min-height, + // or change the window height manually for this to apply. + max-height 300 } // Here's a useful example. Work around WezTerm's initial configure bug |
