wiki: Clarify how key bindings are resolved
Browse files at this commit02baad91aca414a9adb9e77b4967d63bb366fb1bParent: 68589cd1 changed file +9 -0
wiki/Configuration:-Key-Bindings.mdmodified+9 -0
| @@ -52,6 +52,15 @@ For this reason, most of the default keys use the `Mod` modifier. | ||
| 52 | 52 | > |
| 53 | 53 | > Here, look at `sym: Left` and `sym: Right`: these are the key names. |
| 54 | 54 | > 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><</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><</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. | |
| 55 | 64 | |
| 56 | 65 | <sup>Since: 0.1.8</sup> Binds will repeat by default (i.e. holding down a bind will make it trigger repeatedly). |
| 57 | 66 | You can disable that for specific binds with `repeat=false`: |