abouttreesummaryrefslogcommitdiff
path: root/check_layout.py
diff options
context:
space:
mode:
authorJules Aguillon2023-06-10 10:59:25 +0200
committerJules Aguillon2023-06-22 20:14:20 +0200
commit5fc68373d3ee0ce61cfb819f0e623e3a3f63c374 (patch)
tree9468f7650e11254adf51c3b8fdb26a5cc85b0fcb /check_layout.py
parent9f90b807f8bd57e6cff4257a9d842a831193faf6 (diff)
downloadunexpected-keyboard-5fc68373d3ee0ce61cfb819f0e623e3a3f63c374.tar.gz
unexpected-keyboard-5fc68373d3ee0ce61cfb819f0e623e3a3f63c374.zip
Allow to specify a layout script
Add the `script` attribute, which will be used to implement script-specific extra keys.
Diffstat (limited to 'check_layout.py')
-rw-r--r--check_layout.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/check_layout.py b/check_layout.py
index c38705e..f0c1a34 100644
--- a/check_layout.py
+++ b/check_layout.py
@@ -61,6 +61,9 @@ def check_layout(layout):
unexpected_keys(keys, bottom_row_keys,
"Layout contains keys present in the bottom row")
+ if root.get("script") == None:
+ warn("Layout doesn't specify a script.")
+
for fname in sys.argv[1:]:
layout = parse_layout(fname)
if layout == None: