some changes so config works for all situations
This commit is contained in:
parent
abb9c5f946
commit
5d4605f58d
4 changed files with 7 additions and 5 deletions
|
|
@ -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 []
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@ in {
|
|||
|
||||
tooltip-format = " {bandwidthDownBits} , {bandwidthDownBits} ";
|
||||
tooltip-format-wifi = "{essid}: {bandwidthDownBits} , {bandwidthDownBits} ";
|
||||
on-click = "nm-applet";
|
||||
};
|
||||
|
||||
"battery" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue