diff --git a/content/Configuring/Scrolling-Layout.md b/content/Configuring/Scrolling-Layout.md index 0a9da9fd..edbc9d59 100644 --- a/content/Configuring/Scrolling-Layout.md +++ b/content/Configuring/Scrolling-Layout.md @@ -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 +} +``` diff --git a/content/Configuring/Window-Rules.md b/content/Configuring/Window-Rules.md index d7c76e5c..4c5e783d 100644 --- a/content/Configuring/Window-Rules.md +++ b/content/Configuring/Window-Rules.md @@ -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