Fix window rules
parent
589cbdda36
commit
285e007180
|
@ -116,16 +116,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
windowRules = {
|
windowRules = {
|
||||||
# Auto workspace
|
|
||||||
zen = [ "workspace 1 silent" ];
|
|
||||||
discord = [ "workspace name:HDMI-A-1" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
windowRulesV2 = {
|
|
||||||
# ULauncher
|
# ULauncher
|
||||||
"class:^(ulauncher)$" = [
|
"class:^(ulauncher)$" = [
|
||||||
"dimaround"
|
"dimaround"
|
||||||
];
|
];
|
||||||
|
# Auto workspace
|
||||||
|
"class:zen" = [ "workspace 1 silent" ];
|
||||||
|
"class:discord" = [ "workspace name:HDMI-A-1" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -84,11 +84,6 @@
|
||||||
default = { };
|
default = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
windowRulesV2 = mkOption {
|
|
||||||
type = types.attrsOf (types.listOf types.str);
|
|
||||||
default = { };
|
|
||||||
};
|
|
||||||
|
|
||||||
binds = mkOption {
|
binds = mkOption {
|
||||||
type = types.attrsOf types.str;
|
type = types.attrsOf types.str;
|
||||||
default = { };
|
default = { };
|
||||||
|
@ -279,13 +274,6 @@
|
||||||
x = ident: values: map (y ident) values;
|
x = ident: values: map (y ident) values;
|
||||||
in
|
in
|
||||||
lib.flatten (lib.mapAttrsToList x cfg.windowRules);
|
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);
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue