summaryrefslogtreecommitdiffstats
path: root/usecases/desktop/graphical
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2025-03-31 13:29:32 +0200
committerMinijackson <minijackson@riseup.net>2025-03-31 13:31:30 +0200
commit4a850be9ff92cfc4d51a423b8f5c7d5637adeda4 (patch)
tree2fd0336057dd510f9c712d72fd3633b8f42dd2ed /usecases/desktop/graphical
parent3b1f0f154bab14ad2606f62c543f9d53963cb479 (diff)
downloadnixos-config-reborn-4a850be9ff92cfc4d51a423b8f5c7d5637adeda4.tar.gz
nixos-config-reborn-4a850be9ff92cfc4d51a423b8f5c7d5637adeda4.zip
niri: configure keyboard and touchpad inputs
Diffstat (limited to 'usecases/desktop/graphical')
-rw-r--r--usecases/desktop/graphical/niri.kdl19
1 files changed, 8 insertions, 11 deletions
diff --git a/usecases/desktop/graphical/niri.kdl b/usecases/desktop/graphical/niri.kdl
index aa5e610..07626cc 100644
--- a/usecases/desktop/graphical/niri.kdl
+++ b/usecases/desktop/graphical/niri.kdl
@@ -9,12 +9,7 @@
9input { 9input {
10 keyboard { 10 keyboard {
11 xkb { 11 xkb {
12 // You can set rules, model, layout, variant and options. 12 layout "fr(oss),us,fr(ergol)"
13 // For more information, see xkeyboard-config(7).
14
15 // For example:
16 // layout "us,ru"
17 // options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
18 options "compose:caps" 13 options "compose:caps"
19 } 14 }
20 } 15 }
@@ -23,9 +18,11 @@ input {
23 // Omitting settings disables them, or leaves them at their default values. 18 // Omitting settings disables them, or leaves them at their default values.
24 touchpad { 19 touchpad {
25 // off 20 // off
26 tap 21 // tap
27 // dwt 22 // Disable When Typing
28 // dwtp 23 dwt
24 // Disable When Trackpointing
25 dwtp
29 // drag-lock 26 // drag-lock
30 natural-scroll 27 natural-scroll
31 // accel-speed 0.2 28 // accel-speed 0.2
@@ -551,8 +548,8 @@ binds {
551 // a matching layout switch hotkey configured in xkb options above. 548 // a matching layout switch hotkey configured in xkb options above.
552 // Having both at once on the same hotkey will break the switching, 549 // Having both at once on the same hotkey will break the switching,
553 // since it will switch twice upon pressing the hotkey (once by xkb, once by niri). 550 // since it will switch twice upon pressing the hotkey (once by xkb, once by niri).
554 // Mod+Space { switch-layout "next"; } 551 Mod+Space { switch-layout "next"; }
555 // Mod+Shift+Space { switch-layout "prev"; } 552 Mod+Shift+Space { switch-layout "prev"; }
556 553
557 Print { screenshot; } 554 Print { screenshot; }
558 Ctrl+Print { screenshot-screen; } 555 Ctrl+Print { screenshot-screen; }