From e55f782c73dd66646c8b20092d88533842bbf48c Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Fri, 29 Sep 2023 21:21:41 +0200 Subject: [PATCH] feat: add natural scrolling, and map caps lock to ctrl --- hosts/laptop/default.nix | 9 +++++++++ modules/desktop/default.nix | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index 441d8cd..d840209 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -61,6 +61,15 @@ logind.lidSwitch = "ignore"; # Laptop does not go to sleep when lid is closed auto-cpufreq.enable = true; blueman.enable = true; + + xserver.libinput = { + enable = true; + touchpad = { + naturalScrolling = true; + tapping = true; + tappingDragLock = true; + }; + }; }; networking.wireguard.interfaces = { diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index e6ad664..0e1b7c0 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -7,7 +7,7 @@ layout = "us,cz"; # Keyboard layout & €-sign xkbVariant = ",qwerty"; - xkbOptions = "grp:alt_shift_toggle"; + xkbOptions = "grp:alt_shift_toggle ctrl:nocaps"; libinput.enable = true; modules = [ pkgs.xf86_input_wacom ]; # Both needed for wacom tablet usage wacom.enable = true; -- 2.48.1