diff options
| author | Pavel Egorov <[email protected]> | 2025-12-16 05:03:05 +0300 |
|---|---|---|
| committer | Pavel Egorov <[email protected]> | 2025-12-16 05:03:05 +0300 |
| commit | 4cae51308aa8625dc2b482e5c36c58d6168b9fc1 (patch) | |
| tree | 41e39409e76498200a3554f92e0854fc94a6b8d3 /.config/niri/input.kdl | |
| parent | a3f41d2e86fc079717ba63b6f86239db6d044650 (diff) | |
| parent | 2db38a695fc0483056d59fdc772c277a54303fe7 (diff) | |
| download | dotfiles-4cae51308aa8625dc2b482e5c36c58d6168b9fc1.tar.gz dotfiles-4cae51308aa8625dc2b482e5c36c58d6168b9fc1.zip | |
Merge branch 'niri'
Diffstat (limited to '.config/niri/input.kdl')
| -rw-r--r-- | .config/niri/input.kdl | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/.config/niri/input.kdl b/.config/niri/input.kdl new file mode 100644 index 0000000..b6cdc7e --- /dev/null +++ b/.config/niri/input.kdl | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | // Input device configuration. | ||
| 2 | // Find the full list of options on the wiki: | ||
| 3 | // https://yalter.github.io/niri/Configuration:-Input | ||
| 4 | input { | ||
| 5 | keyboard { | ||
| 6 | xkb { | ||
| 7 | // You can set rules, model, layout, variant and options. | ||
| 8 | // For more information, see xkeyboard-config(7). | ||
| 9 | |||
| 10 | layout "us,ru" | ||
| 11 | options "grp:win_space_toggle,caps:escape" | ||
| 12 | |||
| 13 | // If this section is empty, niri will fetch xkb settings | ||
| 14 | // from org.freedesktop.locale1. You can control these using | ||
| 15 | // localectl set-x11-keymap. | ||
| 16 | } | ||
| 17 | |||
| 18 | // Enable numlock on startup, omitting this setting disables it. | ||
| 19 | numlock | ||
| 20 | track-layout "window" | ||
| 21 | } | ||
| 22 | |||
| 23 | // Next sections include libinput settings. | ||
| 24 | // Omitting settings disables them, or leaves them at their default values. | ||
| 25 | // All commented-out settings here are examples, not defaults. | ||
| 26 | touchpad { | ||
| 27 | // off | ||
| 28 | tap | ||
| 29 | // dwt | ||
| 30 | // dwtp | ||
| 31 | // drag false | ||
| 32 | // drag-lock | ||
| 33 | natural-scroll | ||
| 34 | // accel-speed 0.2 | ||
| 35 | // accel-profile "flat" | ||
| 36 | // scroll-method "two-finger" | ||
| 37 | // disabled-on-external-mouse | ||
| 38 | } | ||
| 39 | |||
| 40 | mouse { | ||
| 41 | // off | ||
| 42 | // natural-scroll | ||
| 43 | accel-speed -0.3 | ||
| 44 | accel-profile "flat" | ||
| 45 | // scroll-method "no-scroll" | ||
| 46 | } | ||
| 47 | |||
| 48 | trackpoint { | ||
| 49 | // off | ||
| 50 | // natural-scroll | ||
| 51 | // accel-speed 0.2 | ||
| 52 | // accel-profile "flat" | ||
| 53 | // scroll-method "on-button-down" | ||
| 54 | // scroll-button 273 | ||
| 55 | // scroll-button-lock | ||
| 56 | // middle-emulation | ||
| 57 | } | ||
| 58 | |||
| 59 | // Uncomment this to make the mouse warp to the center of newly focused windows. | ||
| 60 | // warp-mouse-to-focus | ||
| 61 | |||
| 62 | // Focus windows and outputs automatically when moving the mouse into them. | ||
| 63 | // Setting max-scroll-amount="0%" makes it work only on windows already fully on screen. | ||
| 64 | // focus-follows-mouse max-scroll-amount="0%" | ||
| 65 | } | ||
| 66 | |||
