about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xcros-keyboard-map.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/cros-keyboard-map.py b/cros-keyboard-map.py
index 68453b6..67b4d1a 100755
--- a/cros-keyboard-map.py
+++ b/cros-keyboard-map.py
@@ -2,6 +2,11 @@
 
 import argparse
 
+device_ids = {
+    "k:0000:0000", # cros_ec keyboard
+    "k:0001:0001", # AT keyboard
+}
+
 vivaldi_keys = {
     "90": "previoussong",
     "91": "zoom",
@@ -54,8 +59,7 @@ def get_functional_row(physmap, use_vivaldi, super_is_held, super_inverted):
 def get_keyd_config(physmap, inverted):
     config = f"""\
 [ids]
-k:0001:0001
-k:0000:0000
+{"\n".join(device_ids)}
 
 [main]
 {get_functional_row(physmap, use_vivaldi=False, super_is_held=False, super_inverted=inverted)}