From c8411e55d9333174114496a14f0a23abf4a36b7d Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 5 Jul 2024 09:10:48 +0400 Subject: wiki: Mention bind key repeat --- wiki/Configuration:-Key-Bindings.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wiki/Configuration:-Key-Bindings.md b/wiki/Configuration:-Key-Bindings.md index b303374f..231786b9 100644 --- a/wiki/Configuration:-Key-Bindings.md +++ b/wiki/Configuration:-Key-Bindings.md @@ -50,6 +50,15 @@ For this reason, most of the default keys use the `Mod` modifier. > Here, look at `sym: Left` and `sym: Right`: these are the key names. > I was pressing the left and the right arrow in this example. +Binds will do key repeat by default (i.e. holding down a bind will make it trigger repeatedly). +You can disable that for specific binds with `repeat=false`: + +``` +binds { + Mod+T repeat=false { spawn "alacritty"; } +} +``` + Binds can also have a cooldown, which will rate-limit the bind and prevent it from repeatedly triggering too quickly. ``` -- cgit