diff options
| author | bbb651 <bar.ye651@gmail.com> | 2025-01-20 22:52:43 +0200 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-01-23 12:07:32 +0300 |
| commit | 128b01e04905d833214f52a3c6fab308bcc15ce0 (patch) | |
| tree | 80a7877972b946f5dde1848691f8a34529d15ba7 /wiki/Configuration:-Window-Rules.md | |
| parent | 788c9c6c545c016687b024d28f2806055ddb9fc8 (diff) | |
| download | niri-128b01e04905d833214f52a3c6fab308bcc15ce0.tar.gz niri-128b01e04905d833214f52a3c6fab308bcc15ce0.tar.bz2 niri-128b01e04905d833214f52a3c6fab308bcc15ce0.zip | |
Add `scroll-factor` window rule
Diffstat (limited to 'wiki/Configuration:-Window-Rules.md')
| -rw-r--r-- | wiki/Configuration:-Window-Rules.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/wiki/Configuration:-Window-Rules.md b/wiki/Configuration:-Window-Rules.md index cd0a65b2..5fa44021 100644 --- a/wiki/Configuration:-Window-Rules.md +++ b/wiki/Configuration:-Window-Rules.md @@ -53,6 +53,7 @@ window-rule { // block-out-from "screen-capture" variable-refresh-rate true default-floating-position x=100 y=200 relative-to="bottom-left" + scroll-factor 0.75 focus-ring { // off @@ -557,6 +558,23 @@ window-rule { } ``` +#### `scroll-factor` + +<sup>Since: next release</sup> + +Set a scroll factor for all scroll events sent to a window. + +This will be multiplied with the scroll factor set for your input device in the [input](/wiki/Configuration:-Input.md) section. + +```kdl +// Make scrolling in Firefox a bit slower. +window-rule { + match app-id="firefox$" + + scroll-factor 0.75 +} +``` + #### `draw-border-with-background` Override whether the border and the focus ring draw with a background. |
