Fix window rules

main
kalle 2025-03-29 13:47:07 +01:00
parent 589cbdda36
commit 285e007180
2 changed files with 3 additions and 18 deletions

View File

@ -116,16 +116,13 @@
};
windowRules = {
# Auto workspace
zen = [ "workspace 1 silent" ];
discord = [ "workspace name:HDMI-A-1" ];
};
windowRulesV2 = {
# ULauncher
"class:^(ulauncher)$" = [
"dimaround"
];
# Auto workspace
"class:zen" = [ "workspace 1 silent" ];
"class:discord" = [ "workspace name:HDMI-A-1" ];
};
};

View File

@ -84,11 +84,6 @@
default = { };
};
windowRulesV2 = mkOption {
type = types.attrsOf (types.listOf types.str);
default = { };
};
binds = mkOption {
type = types.attrsOf types.str;
default = { };
@ -279,13 +274,6 @@
x = ident: values: map (y ident) values;
in
lib.flatten (lib.mapAttrsToList x cfg.windowRules);
windowrulev2 =
let
y = ident: value: "${value},${ident}";
x = ident: values: map (y ident) values;
in
lib.flatten (lib.mapAttrsToList x cfg.windowRulesV2);
};
};
};