aboutsummaryrefslogtreecommitdiff
path: root/docs/wiki/Configuration:-Recent-Windows.md
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-11-24 08:52:04 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-11-24 08:52:13 +0300
commitd74debda132dd4b44c045d6d3333d7b586316808 (patch)
treea68fbf322703e08d9dbe2636fabe940d5a089d27 /docs/wiki/Configuration:-Recent-Windows.md
parent642277f881addc3f375cd81b1f7c78498f4925ad (diff)
downloadniri-d74debda132dd4b44c045d6d3333d7b586316808.tar.gz
niri-d74debda132dd4b44c045d6d3333d7b586316808.tar.bz2
niri-d74debda132dd4b44c045d6d3333d7b586316808.zip
Add debounce-ms recent-windows setting
Diffstat (limited to 'docs/wiki/Configuration:-Recent-Windows.md')
-rw-r--r--docs/wiki/Configuration:-Recent-Windows.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/wiki/Configuration:-Recent-Windows.md b/docs/wiki/Configuration:-Recent-Windows.md
index 6d819d59..abdd6df4 100644
--- a/docs/wiki/Configuration:-Recent-Windows.md
+++ b/docs/wiki/Configuration:-Recent-Windows.md
@@ -9,6 +9,8 @@ Here is an outline of the available settings and their default values:
```kdl
recent-windows {
// off
+ debounce-ms 750
+
open-delay-ms 150
highlight {
@@ -39,6 +41,30 @@ recent-windows {
`off` disables the recent windows switcher altogether.
+### `debounce-ms`
+
+Delay, in milliseconds, between the window receiving focus and getting "committed" to the recent windows list.
+
+When you want to focus some window, you might end up focusing some unrelated windows on the way:
+
+- with keyboard navigation, the windows between your current one and the target one;
+- with [`focus-follows-mouse`](./Configuration:-Input.md#focus-follows-mouse), the windows you happen to cross with the mouse pointer on the way to the target window.
+
+The debounce delay prevents those intermediate windows from polluting the recent windows list.
+
+Note that some actions, like keyboard input into the target window, will skip this delay and commit the window to the list immediately.
+This way, the recent windows list stays responsive while not getting polluted too much with unintended windows.
+
+If you want windows to appear in recent windows right away, including intermediate windows, you can reduce the delay or set it to zero:
+
+```kdl
+recent-windows {
+ // Commit windows to the recent windows list as soon as they're focused,
+ // with no debounce delay.
+ debounce-ms 0
+}
+```
+
### `open-delay-ms`
Delay, in milliseconds, between pressing the Alt-Tab bind and the recent windows switcher visually appearing on screen.