diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-07-28 11:12:40 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-07-28 11:12:40 -0700 |
| commit | 3485b308215b3c699dc4c2fefb6d0e0e13b8959b (patch) | |
| tree | 9e929ee1e527f44b912ebd43e0a2c2e6811ef83c | |
| parent | c33f0b4562e794f4f578811302036108be886fee (diff) | |
desktop: enable natural trackpad scrolling
| -rw-r--r-- | roles/desktop/default.nix | 1 | ||||
| -rw-r--r-- | roles/desktop/input.nix | 30 |
2 files changed, 19 insertions, 12 deletions
diff --git a/roles/desktop/default.nix b/roles/desktop/default.nix index d169bd0..cfa5294 100644 --- a/roles/desktop/default.nix +++ b/roles/desktop/default.nix @@ -43,6 +43,7 @@ let cfg = config.roles.desktop; in { windowManager.i3.enable = true; }; + libinput.enable = true; keyd.enable = true; pipewire = { diff --git a/roles/desktop/input.nix b/roles/desktop/input.nix index 20e9da8..c0a722f 100644 --- a/roles/desktop/input.nix +++ b/roles/desktop/input.nix @@ -1,20 +1,26 @@ { pkgs, ... }: { - services.keyd = { - keyboards."*".settings = { - main = { - # Swap alt and meta keys. - # I prefer (physical) alt as my WM modifier key because it - # is easier to reach. This can collide with some programs - # shortcuts if they inlcude alt. Swapping alt and meta fixes - # this by making my WM mod key (software) meta, freeing up alt. + services = { + libinput = { + touchpad.naturalScrolling = true; + }; + + keyd = { + keyboards."*".settings = { + main = { + # Swap alt and meta keys. + # I prefer (physical) alt as my WM modifier key because it + # is easier to reach. This can collide with some programs + # shortcuts if they inlcude alt. Swapping alt and meta fixes + # this by making my WM mod key (software) meta, freeing up alt. - leftalt = "leftmeta"; - leftmeta = "leftalt"; + leftalt = "leftmeta"; + leftmeta = "leftalt"; - rightalt = "rightmeta"; - rightmeta = "rightalt"; + rightalt = "rightmeta"; + rightmeta = "rightalt"; + }; }; }; }; |