feat: add utility function for binding expressions

This commit is contained in:
n3oney 2023-04-12 23:42:55 +02:00
parent 54aad74d8d
commit ac5c540b2d
No known key found for this signature in database
GPG key ID: C786693DE727850E

View file

@ -16,6 +16,16 @@ in
};
};
mkExprBinding = key: action: desc:
self.mkIf (key != null) {
"${key}" = {
inherit action desc;
lua = true;
silent = true;
expr = true;
};
};
mkBinding = key: action: desc:
self.mkIf (key != null) {
"${key}" = {