diff options
| author | Pavel Egorov <[email protected]> | 2025-12-08 23:42:01 +0300 |
|---|---|---|
| committer | Pavel Egorov <[email protected]> | 2025-12-08 23:42:01 +0300 |
| commit | d659eb4c3003a12daac7094e65a74f017d519ca9 (patch) | |
| tree | 7695289f429b0091ec2976fd52c6ca13396744e3 /.config/niri/input.kdl | |
| parent | bddf31d3aeab20782b443f2be98c957e57d90e75 (diff) | |
| download | dotfiles-d659eb4c3003a12daac7094e65a74f017d519ca9.tar.gz dotfiles-d659eb4c3003a12daac7094e65a74f017d519ca9.zip | |
[niri] split config into separate files
Diffstat (limited to '')
| -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 | |||
