dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
modules/desktop/hyprland/_settings/_lib.nix (587B)
1# Lua Config Helpers
2lib: let
3 inherit (lib) concatStringsSep;
4 inline = lib.generators.mkLuaInline;
5in rec {
6 inherit inline;
7
8 combo = mods: key:
9 if mods == []
10 then key
11 else concatStringsSep " + " (mods ++ [key]);
12
13 exec = cmd: ''hl.dsp.exec_cmd("${cmd}")'';
14 bind = keys: disp: {_args = [keys (inline disp)];};
15 bindOpts = keys: disp: opts: {_args = [keys (inline disp) opts];};
16 env = k: v: {_args = [k v];};
17 permission = re: type: act: {_args = [re type act];};
18 on = event: fn: {_args = [event (inline fn)];};
19 curve = name: spec: {_args = [name spec];};
20}