mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Implement default-window-height window rule
Only works for floats that aren't initially fullscreen atm.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user