some changes so config works for all situations

This commit is contained in:
KoenDR06 2025-09-03 16:45:40 +02:00
parent abb9c5f946
commit 5d4605f58d
4 changed files with 7 additions and 5 deletions

View file

@ -4,7 +4,7 @@
...
}: let
inherit (lib) mkOption types mkIf recursiveUpdate trivial strings lists;
inherit (builtins) concatStringsSep elem genList elemAt;
inherit (builtins) concatStringsSep elem genList elemAt length;
inherit (trivial) boolToString;
inherit (strings) floatToString;
inherit (lists) remove;
@ -1714,7 +1714,7 @@ in {
${
concatStringsSep "\n" (
if cfg.config.monitors.bindWorkspaces == "interlaced"
then (map (x: "workspace = ${toString (x + 1)}, persistent:true, monitor:${(elemAt cfg.config.monitors.displays (x - (2 * (x / 2)))).output}") (genList (x: x) 10))
then (map (x: "workspace = ${toString (x + 1)}, persistent:true, monitor:${(elemAt cfg.config.monitors.displays (x - ((length cfg.config.monitors.displays) * (x / (length cfg.config.monitors.displays))))).output}") (genList (x: x) 10))
else []
)
}

View file

@ -98,6 +98,7 @@ in {
tooltip-format = " {bandwidthDownBits} , {bandwidthDownBits} ";
tooltip-format-wifi = "{essid}: {bandwidthDownBits} , {bandwidthDownBits} ";
on-click = "nm-applet";
};
"battery" = {