Implement default-window-height window rule

Only works for floats that aren't initially fullscreen atm.
This commit is contained in:
Ivan Molodetskikh
2024-12-27 09:58:22 +03:00
parent 27911431db
commit 6fba4c371e
1450 changed files with 16540 additions and 14 deletions
+16
View File
@@ -37,6 +37,7 @@ window-rule {
// Properties that apply once upon window opening.
default-column-width { proportion 0.75; }
default-window-height { fixed 500; }
open-on-output "Some Company CoolMonitor 1234"
open-on-workspace "chat"
open-maximized true
@@ -237,6 +238,21 @@ window-rule {
}
```
#### `default-window-height`
<sup>Since: next release</sup>
Set the default height for the new window if it opens as floating.
```kdl
// Make Alacritty take 50% of the screen height on opening.
window-rule {
match app-id="^Alacritty$"
default-window-height { proportion 0.5; }
}
```
#### `open-on-output`
Make the window open on a specific output.