forge
Explore
Log in

Don't you dare go Hollow

wiki: Clarify how key bindings are resolved

Browse files at this commit

02baad91aca414a9adb9e77b4967d63bb366fb1bIvan MolodetskikhParent: 68589cd
wiki/Configuration:-Key-Bindings.mdmodified+9 -0
@@ -52,6 +52,15 @@ For this reason, most of the default keys use the `Mod` modifier.
5252 >
5353 > Here, look at `sym: Left` and `sym: Right`: these are the key names.
5454 > I was pressing the left and the right arrow in this example.
55+>
56+> Keep in mind that binding shifted keys requires spelling out Shift and the unshifted version of the key, according to your XKB layout.
57+> For example, on the US QWERTY layout, <kbd>&lt;</kbd> is on <kbd>Shift</kbd> + <kbd>,</kbd>, so to bind it, you spell out something like `Mod+Shift+Comma`.
58+>
59+> As another example, if you've configured the French [BÉPO](https://en.wikipedia.org/wiki/B%C3%89PO) XKB layout, your <kbd>&lt;</kbd> is on <kbd>AltGr</kbd> + <kbd>«</kbd>.
60+> <kbd>AltGr</kbd> is `ISO_Level3_Shift`, or equivalently `Mod5`, so to bind it, you spell out something like `Mod+Mod5+guillemotleft`.
61+>
62+> When resolving latin keys, niri will search for the *first* configured XKB layout that has the latin key.
63+> So for example with US QWERTY and RU layouts configured, US QWERTY will be used for latin binds.
5564
5665 <sup>Since: 0.1.8</sup> Binds will repeat by default (i.e. holding down a bind will make it trigger repeatedly).
5766 You can disable that for specific binds with `repeat=false`: