wiki: Document new floating window rule and gesture

This commit is contained in:
Ivan Molodetskikh
2024-12-15 16:44:05 +03:00
parent 3c67b08488
commit 9f017e834c
2 changed files with 27 additions and 0 deletions
+25
View File
@@ -41,6 +41,7 @@ window-rule {
open-on-workspace "chat"
open-maximized true
open-fullscreen true
open-floating true
// Properties that apply continuously.
draw-border-with-background false
@@ -313,6 +314,30 @@ window-rule {
}
```
#### `open-floating`
<sup>Since: next release</sup>
Make the window open in the floating layout.
```kdl
// Open the Firefox picture-in-picture window as floating.
window-rule {
match app-id=r#"^org\.mozilla\.firefox$"# title="^Picture-in-Picture$"
open-floating true
}
```
You can also set this to `false` to *prevent* a window from opening in the floating layout.
```kdl
// Open all windows in the tiling layout, overriding any auto-floating logic.
window-rule {
open-floating false
}
```
### Dynamic Properties
These properties apply continuously to open windows.
+2
View File
@@ -12,6 +12,8 @@ You can move windows by holding <kbd>Mod</kbd> and the left mouse button.
You can customize the look of the window insertion preview in the `insert-hint` [layout config](./Configuration:-Layout.md) section.
<sup>Since: next release</sup> Right click while moving to toggle between floating and tiling layout to put the window into.
#### Interactive Resize
<sup>Since: 0.1.6</sup>