From 21380b6a82119af3b4a3097493981c6ed3d03ebc Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 11 Jun 2023 14:31:49 +0200 Subject: [PATCH] improved kmonad configuration for each keyboard --- nixos/components/gui/kmonad.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nixos/components/gui/kmonad.nix b/nixos/components/gui/kmonad.nix index 197dbdb..e28595c 100644 --- a/nixos/components/gui/kmonad.nix +++ b/nixos/components/gui/kmonad.nix @@ -22,7 +22,7 @@ enable = true; keyboards = let - keyboard = device: { + keyboard = device: leftOfSpace: { device = device; extraGroups = [ "video" ]; defcfg = { @@ -36,7 +36,7 @@ tab q w e r t y u i o p [ ] \ caps a s d f g h j k l ; ' ret lsft z x c v b n m , . / rsft - lctl lmet lalt spc ralt rmet cmp rctl + ${lib.concatStringsSep " " leftOfSpace} spc ralt rmet cmp rctl ) (defalias sym (layer-toggle symbols)) @@ -60,9 +60,9 @@ in { - nativ = keyboard "/dev/input/by-path/platform-i8042-serio-0-event-kbd"; - dasKeyboard = keyboard "/dev/input/by-id/usb-Metadot_-_Das_Keyboard_Das_Keyboard-event-kbd"; - uhk = keyboard "/dev/input/by-id/usb-Ultimate_Gadget_Laboratories_UHK_60_v2-if01-event-kbd"; + nativ = keyboard "/dev/input/by-path/platform-i8042-serio-0-event-kbd" [ "lctl" "lmet" "lalt" ]; + dasKeyboard = keyboard "/dev/input/by-id/usb-Metadot_-_Das_Keyboard_Das_Keyboard-event-kbd" [ "lctl" "lmet" "lalt" ]; + uhk = keyboard "/dev/input/by-id/usb-Ultimate_Gadget_Laboratories_UHK_60_v2-if01-event-kbd" [ "lctl" "lalt" "lmet" ]; }; }; };