disable surface keyboard we don't have
This commit is contained in:
13
sw-kiosk.nix
13
sw-kiosk.nix
@@ -80,16 +80,6 @@
|
|||||||
"/run/current-system/sw/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas";
|
"/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 = ''
|
services.udev.extraRules = ''
|
||||||
# These shouldn't be counted as keyboards, but should still produce events
|
# These shouldn't be counted as keyboards, but should still produce events
|
||||||
ACTION=="add|change", KERNEL=="event*", ATTRS{name}=="Video Bus", \
|
ACTION=="add|change", KERNEL=="event*", ATTRS{name}=="Video Bus", \
|
||||||
@@ -102,6 +92,9 @@
|
|||||||
ENV{ID_INPUT_KEYBOARD}="", ENV{ID_INPUT_KEY}=""
|
ENV{ID_INPUT_KEYBOARD}="", ENV{ID_INPUT_KEY}=""
|
||||||
ACTION=="change", SUBSYSTEM=="switch", ATTRS{name}=="Intel HID switches", \
|
ACTION=="change", SUBSYSTEM=="switch", ATTRS{name}=="Intel HID switches", \
|
||||||
ENV{SW_TABLET_MODE}="1"
|
ENV{SW_TABLET_MODE}="1"
|
||||||
|
ACTION=="add|change", KERNEL=="event*", ATTRS{name}=="AT Translated Set 2 keyboard", \
|
||||||
|
ENV{ID_INPUT}="", ENV{ID_INPUT_KEY}="", ENV{ID_INPUT_KEYBOARD}="", \
|
||||||
|
OPTIONS+="ignore_device"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
systemd.user.services."force-osk" = {
|
systemd.user.services."force-osk" = {
|
||||||
|
|||||||
Reference in New Issue
Block a user