aboutsummaryrefslogtreecommitdiff
path: root/wiki/Configuration:-Input.md
diff options
context:
space:
mode:
authormay <63159454+m4rch3n1ng@users.noreply.github.com>2025-01-30 14:50:05 +0100
committerGitHub <noreply@github.com>2025-01-30 13:50:05 +0000
commite412a0fc6bc0e04b4238b3d6de4962c2e19ea4ec (patch)
tree290eb88c9d7c86e4f579e05f5181cda53bbf680a /wiki/Configuration:-Input.md
parentfb5fedbf24aa66909bb9d112856f27ceb04766a8 (diff)
downloadniri-e412a0fc6bc0e04b4238b3d6de4962c2e19ea4ec.tar.gz
niri-e412a0fc6bc0e04b4238b3d6de4962c2e19ea4ec.tar.bz2
niri-e412a0fc6bc0e04b4238b3d6de4962c2e19ea4ec.zip
add option to set xkb config from file (#1062)
* add option to set xkb config from file * Apply suggestions from code review --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'wiki/Configuration:-Input.md')
-rw-r--r--wiki/Configuration:-Input.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/wiki/Configuration:-Input.md b/wiki/Configuration:-Input.md
index 899d1beb..cbb8c2d2 100644
--- a/wiki/Configuration:-Input.md
+++ b/wiki/Configuration:-Input.md
@@ -17,6 +17,7 @@ input {
// options "compose:ralt,ctrl:nocaps"
// model ""
// rules ""
+ // file "~/.config/keymap.xkb"
}
// repeat-delay 600
@@ -112,6 +113,21 @@ input {
}
```
+> [!TIP]
+>
+> Alternatively you can directly set a path to a .xkb file containing an xkb keymap.
+> This overrides all other xkb settings
+>
+> ```kdl
+> input {
+> keyboard {
+> xkb {
+> file "~/.config/keymap.xkb"
+> }
+> }
+> }
+> ```
+
When using multiple layouts, niri can remember the current layout globally (the default) or per-window.
You can control this with the `track-layout` option.