summaryrefslogtreecommitdiff
path: root/kvmd/keymap.py.mako
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/keymap.py.mako')
-rw-r--r--kvmd/keymap.py.mako19
1 files changed, 18 insertions, 1 deletions
diff --git a/kvmd/keymap.py.mako b/kvmd/keymap.py.mako
index 219cb186..0f9e7ef0 100644
--- a/kvmd/keymap.py.mako
+++ b/kvmd/keymap.py.mako
@@ -46,9 +46,26 @@ class Key:
# =====
KEYMAP: Dict[str, Key] = {
% for km in sorted(keymap, key=operator.attrgetter("serial_code")):
- "${km.web_key}": Key(
+ "${km.web_name}": Key(
serial=SerialKey(code=${km.serial_code}),
otg=OtgKey(code=${km.otg_code}, is_modifier=${km.otg_is_modifier}),
),
% endfor
}
+
+
+# =====
+X11_TO_AT1 = {
+% for km in sorted(keymap, key=operator.attrgetter("at1_code")):
+ % for code in sorted(km.x11_codes):
+ ${code}: ${km.at1_code},
+ % endfor
+% endfor
+}
+
+
+AT1_TO_WEB = {
+% for km in sorted(keymap, key=operator.attrgetter("at1_code")):
+ ${km.at1_code}: "${km.web_name}",
+% endfor
+}