forge
Explore
Log in

Don't you dare go Hollow

wiki: Start writing input configuration

Browse files at this commit

78dbb2308e9a86186e781f078d0c3503dbf753aaIvan MolodetskikhParent: 1dce993
wiki/Configuration:-Input.mdmodified+109 -1
@@ -1 +1,109 @@
1-WIP1+### Overview
2+
3+In this section you can configure input devices like keyboard and mouse, and some input-related options.
4+
5+All settings at a glance:
6+
7+```
8+input {
9+ keyboard {
10+ xkb {
11+ // layout "us"
12+ // variant "colemak_dh_ortho"
13+ // options "compose:ralt,ctrl:nocaps"
14+ // model ""
15+ // rules ""
16+ }
17+
18+ // repeat-delay 600
19+ // repeat-rate 25
20+ // track-layout "global"
21+ }
22+
23+ touchpad {
24+ tap
25+ // dwt
26+ // dwtp
27+ natural-scroll
28+ // accel-speed 0.2
29+ // accel-profile "flat"
30+ // tap-button-map "left-middle-right"
31+ // click-method "clickfinger"
32+ }
33+
34+ mouse {
35+ // natural-scroll
36+ // accel-speed 0.2
37+ // accel-profile "flat"
38+ }
39+
40+ trackpoint {
41+ // natural-scroll
42+ // accel-speed 0.2
43+ // accel-profile "flat"
44+ }
45+
46+ tablet {
47+ map-to-output "eDP-1"
48+ }
49+
50+ touch {
51+ map-to-output "eDP-1"
52+ }
53+
54+ // disable-power-key-handling
55+ // warp-mouse-to-focus
56+ // focus-follows-mouse
57+ // workspace-auto-back-and-forth
58+}
59+```
60+
61+### Keyboard
62+
63+#### Layout
64+
65+In the `xkb` section, you can set layout, variant, options, model and rules.
66+These are passed directly to libxkbcommon, which is also used by most other Wayland compositors.
67+See the `xkeyboard-config(7)` manual for more information.
68+
69+```
70+input {
71+ keyboard {
72+ xkb {
73+ layout "us"
74+ variant "colemak_dh_ortho"
75+ options "compose:ralt,ctrl:nocaps"
76+ }
77+ }
78+}
79+```
80+
81+When using multiple layouts, niri can remember the current layout globally (the default) or per-window.
82+You can control this with the `track-layout` option.
83+
84+- `global`: layout change is global for all windows.
85+- `window`: layout is tracked for each window individually.
86+
87+```
88+input {
89+ keyboard {
90+ track-layout "global"
91+ }
92+}
93+```
94+
95+#### Repeat
96+
97+Delay is in milliseconds before the keyboard repeat starts.
98+Rate is in characters per second.
99+
100+```
101+input {
102+ keyboard {
103+ repeat-delay 600
104+ repeat-rate 25
105+ }
106+}
107+```
108+
109+### TBD