Allow to specify a layout script

Add the `script` attribute, which will be used to implement
script-specific extra keys.
This commit is contained in:
Jules Aguillon
2023-06-10 10:59:25 +02:00
parent 9f90b807f8
commit 5fc68373d3
3 changed files with 91 additions and 43 deletions

View File

@ -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: