ctucx.git: nixfiles

ctucx' nixfiles

commit 2726d33a91d6a24c9f4f6039caf5c534b52c238b
parent b3e908120edd7ac1a2294be70c7f7d72626dc955
Author: Leah (ctucx) <git@ctu.cx>
Date: Sun, 18 Sep 2022 19:27:38 +0200

configuration/darwin/keyboard: add configuration for macbook air 2022
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/configurations/darwin/keyboard.nix b/configurations/darwin/keyboard.nix
@@ -14,9 +14,9 @@
     enable = true;
     remapKeys = [
       {
-        # Internal keyboard
-        VendorID        = "5ac";
-        ProductID       = "281";
+        # Internal keyboard (Macbook Air 2020)
+        VendorID       = "5ac";
+        ProductID      = "281";
         UserKeyMapping = [
           # Remap tilde on non-US keyboards
           { HIDKeyboardModifierMappingSrc = 30064771172; HIDKeyboardModifierMappingDst = 30064771125; }

@@ -26,6 +26,15 @@
         ];
       }
       {
+        # Internal keyboard (Macbook Air 2022)
+        LocationID     = "a1";
+        UserKeyMapping = [
+          # Swap right_command and right_option
+          { HIDKeyboardModifierMappingSrc = 30064771303; HIDKeyboardModifierMappingDst = 30064771302; }
+          { HIDKeyboardModifierMappingSrc = 30064771302; HIDKeyboardModifierMappingDst = 30064771303; }
+        ];
+      }
+      {
         # Trackpoint Keyboard 2
         VendorID       = "17ef";
         ProductID      = "60ee";