diff options
Diffstat (limited to 'roles/desktop')
| -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"; + }; }; }; }; |