Disable internal keyboard when external (Voyager) is connected

This commit is contained in:
larstvei 2025-08-29 13:40:19 +02:00
parent ec0b98795f
commit afb2fe70d7

View File

@ -1,4 +1,12 @@
{ pkgs, ... }:
{ {
# Disable internal keyboard when external (Voyager) is connected
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="input", KERNEL=="event*", ENV{DEVLINKS}=="*usb-ZSA_Technology_Labs_Voyager-event-kbd*", RUN+="${pkgs.kmod}/bin/modprobe -r atkbd"
ACTION=="remove", SUBSYSTEM=="input", KERNEL=="event*", ENV{DEVLINKS}=="*usb-ZSA_Technology_Labs_Voyager-event-kbd*", RUN+="${pkgs.kmod}/bin/modprobe atkbd"
'';
services.kanata = { services.kanata = {
enable = true; enable = true;
keyboards = { keyboards = {