hyprland: hyperconf to lua

This commit is contained in:
Black_Raven committed 2026-09-09 00:22:18 +03:00
1 parent b5920c6211
commit fe0d9e5198
17 files changed
+334 -345

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
{ lib }:
let
inline = lib.generators.mkLuaInline;
quote = builtins.toJSON;
in rec {
inherit inline;
exec = command: "hl.dsp.exec_cmd(${quote command})";
bind = keys: dispatcher: { _args = [ keys (inline dispatcher) ]; };
bindWithFlags = keys: dispatcher: flags: { _args = [ keys (inline dispatcher) flags ]; };
onStart = commands: {
_args = [
"hyprland.start"
(inline ("function()\n" + lib.concatMapStringsSep "\n" (command: " hl.exec_cmd(${quote command})") commands + "\nend"))
];
};
}