From 1a6ab2840a872274508524502cc900384b82b435 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Tue, 7 May 2024 11:21:51 +0200 Subject: [PATCH] nixy/zremap: add temporary fix for external kbd --- nixy/configuration.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/nixy/configuration.nix b/nixy/configuration.nix index 38f254f..79aafd4 100644 --- a/nixy/configuration.nix +++ b/nixy/configuration.nix @@ -177,9 +177,17 @@ wantedBy = ["multi-user.target"]; serviceConfig.Nice = -20; script = '' - sleep 1 - ${zremap.defaultPackage.${system}}/bin/zremap \ - /dev/input/by-path/platform-i8042-serio-0-event-kbd + sleep 1 + KBD1="/dev/input/by-path/platform-i8042-serio-0-event-kbd" + KBD2="/dev/input/by-path/pci-0000:07:00.3-usbv2-0:1.1.3.2:1.1-event-kbd" + if [ -L "$KBD1" ]; then + ${zremap.defaultPackage.${system}}/bin/zremap "$KBD1" & + fi + if [ -L "$KBD2" ]; then + ${zremap.defaultPackage.${system}}/bin/zremap "$KBD2" & + fi + + wait ''; }; };