[Hyprland] Merges monitor configuration
This commit is contained in:
@@ -18,27 +18,6 @@
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
"hypr/monitors.lua" = {
|
||||
text = lib.concatStrings (
|
||||
lib.imap0 (
|
||||
idx:
|
||||
{ name, value }:
|
||||
let
|
||||
offset = idx * 10;
|
||||
in
|
||||
lib.concatMapStrings (
|
||||
i:
|
||||
let
|
||||
ws = offset + i;
|
||||
in
|
||||
''
|
||||
hl.workspace_rule({ workspace = ${toString ws}, monitor = "${name}", default_name = "${name}_${toString i}" })
|
||||
''
|
||||
) (lib.range 1 10)
|
||||
) (lib.attrsToList config.hardware.monitors)
|
||||
);
|
||||
};
|
||||
|
||||
"hypr/config" = {
|
||||
source = ./config;
|
||||
recursive = true;
|
||||
|
||||
Reference in New Issue
Block a user