aboutsummaryrefslogtreecommitdiff
path: root/wiki
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-07-05 20:12:56 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-07-05 20:53:11 +0400
commit1da99f4003c100180b4821afc4e32e35c86dfdb4 (patch)
tree70f465e9e585e5547f79ad6ac94a0828de588ad9 /wiki
parent120eaa6c56491e284a6a1a8bfb49ef477b8c0854 (diff)
downloadniri-1da99f4003c100180b4821afc4e32e35c86dfdb4.tar.gz
niri-1da99f4003c100180b4821afc4e32e35c86dfdb4.tar.bz2
niri-1da99f4003c100180b4821afc4e32e35c86dfdb4.zip
Implement focus-follows-mouse max-scroll-amount
Diffstat (limited to 'wiki')
-rw-r--r--wiki/Configuration:-Input.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/wiki/Configuration:-Input.md b/wiki/Configuration:-Input.md
index 05c6ce9b..fd4d0d68 100644
--- a/wiki/Configuration:-Input.md
+++ b/wiki/Configuration:-Input.md
@@ -68,7 +68,7 @@ input {
// disable-power-key-handling
// warp-mouse-to-focus
- // focus-follows-mouse
+ // focus-follows-mouse max-scroll-amount="0%"
// workspace-auto-back-and-forth
}
```
@@ -207,6 +207,24 @@ input {
}
```
+<sup>Since: 0.1.8</sup> You can optionally set `max-scroll-amount`.
+Then, focus-follows-mouse won't focus a window if it will result in the view scrolling more than the set amount.
+The value is a percentage of the working area width.
+
+```
+input {
+ // Allow focus-follows-mouse when it results in scrolling at most 10% of the screen.
+ focus-follows-mouse max-scroll-amount="10%"
+}
+```
+
+```
+input {
+ // Allow focus-follows-mouse only when it will not scroll the view.
+ focus-follows-mouse max-scroll-amount="0%"
+}
+```
+
#### `workspace-auto-back-and-forth`
Normally, switching to the same workspace by index twice will do nothing (since you're already on that workspace).