refactor(registry): inline keybind action checks

This commit is contained in:
2026-10-11 12:23:40 -04:00
parent 3e3eba515b
commit 9f882b5695

View File

@@ -10,11 +10,11 @@
entries:
lib.all (
entry:
let
action = entry.value.action;
in
(action.kind == "exec" && action.command != null)
|| (action.kind == "focus" && lib.xor (action.direction != null) (action.workspace != null))
(entry.value.action.kind == "exec" && entry.value.action.command != null)
|| (
entry.value.action.kind == "focus"
&& lib.xor (entry.value.action.direction != null) (entry.value.action.workspace != null)
)
) entries;
message = "Desktop keybind actions must set the fields their kind requires.";
}