Add: scrolling_width (#1412)

This commit is contained in:
ItsOhen 2026-03-17 17:43:56 +01:00 committed by GitHub
parent 596fa011b4
commit e45d41da4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View file

@ -52,3 +52,15 @@ Example key bindings for your Hyprland config:
bind = $mainMod, period, layoutmsg, move +col
bind = $mainMod, comma, layoutmsg, swapcol l
```
## Window rules
With the static rule scrolling_width you can set a starting column width for a window.
```
windowrule {
name = kitty_starting_width
match:class = kitty
scrolling_width = 0.5
}
```

View file

@ -110,6 +110,7 @@ Static effects are evaluated once when the window is opened and never again. Thi
| suppress_event | \[types...\] | Ignores specific events from the window. Events are space separated, and can be: `fullscreen`, `maximize`, `activate`, `activatefocus`, `fullscreenoutput`. |
| content | \[none\|photo\|video\|game\] | Sets content type. |
| no_close_for | \[ms\] | Makes the window uncloseable with the `killactive` dispatcher for a given amount of ms on open. |
| scrolling_width | \[float\] | Set column width for window when starting on a workspace with the scrolling layout. |
#### Expressions