From 95c5364a69d7cca46687fe3dd646e276422eb88c Mon Sep 17 00:00:00 2001 From: UGA Innovation Factory Date: Mon, 8 Dec 2025 18:15:26 +0000 Subject: [PATCH] disable surface keyboard we don't have --- sw-kiosk.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sw-kiosk.nix b/sw-kiosk.nix index 01ac44e..2904910 100644 --- a/sw-kiosk.nix +++ b/sw-kiosk.nix @@ -80,6 +80,16 @@ "/run/current-system/sw/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas"; }; + services.xserver.libinput = { + enable = true; + devices = { + "disable-ghost-keyboard" = { + matchDevice = "AT Translated Set 2 keyboard"; + ignore = true; + }; + }; + }; + services.udev.extraRules = '' # These shouldn't be counted as keyboards, but should still produce events ACTION=="add|change", KERNEL=="event*", ATTRS{name}=="Video Bus", \ @@ -90,6 +100,8 @@ ENV{ID_INPUT_KEYBOARD}="", ENV{ID_INPUT_KEY}="" ACTION=="add|change", KERNEL=="event*", ATTRS{name}=="Intel HID 5 button array", \ ENV{ID_INPUT_KEYBOARD}="", ENV{ID_INPUT_KEY}="" + ACTION=="change", SUBSYSTEM=="switch", ATTRS{name}=="Intel HID switches", \ + ENV{SW_TABLET_MODE}="1" ''; systemd.user.services."force-osk" = {