mirror of
https://github.com/larstvei/nix-config.git
synced 2025-08-30 04:40:13 +00:00
Disable internal keyboard when external (Voyager) is connected
This commit is contained in:
parent
ec0b98795f
commit
afb2fe70d7
@ -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 = {
|
||||
enable = true;
|
||||
keyboards = {
|
||||
|
Loading…
Reference in New Issue
Block a user