From a7432ebaefc9a400dcda399d48b949230378d784 Mon Sep 17 00:00:00 2001 From: Tobias Mayer Date: Sun, 21 Jul 2024 15:06:36 +0200 Subject: [PATCH] framework/16-inch: Mark keyboard as internal for libinput This addition tells libinput that the built-in keyboard is indeed internal, allowing the "Disable-While-Typing" setting to take effect. The method is explained at https://linuxtouchpad.org/libinput/2022/05/07/disable-while-typing.html. --- framework/16-inch/common/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/framework/16-inch/common/default.nix b/framework/16-inch/common/default.nix index 547f98f..07e5162 100644 --- a/framework/16-inch/common/default.nix +++ b/framework/16-inch/common/default.nix @@ -26,4 +26,14 @@ # Enable keyboard customization hardware.keyboard.qmk.enable = lib.mkDefault true; + + # Allow `services.libinput.touchpad.disableWhileTyping` to work correctly. + # Set unconditionally because libinput can also be configured dynamically via + # gsettings. + environment.etc."libinput/local-overrides.quirks".text = '' + [Serial Keyboards] + MatchUdevType=keyboard + MatchName=Framework Laptop 16 Keyboard Module - ANSI Keyboard + AttrKeyboardIntegration=internal + ''; }