Attribute set of i3status-rust bars, each with their own configuration. Each bar name generates a config file suffixed with the bar's name from the attribute set, like so: config-name.toml.

This way, multiple config files can be generated, such as for having a top and a bottom bar.

See i3status-rust(1) for options.

Declarations
Type
attribute set of (submodule)
Default
{
  default = {
    blocks = [
      {
        alert = 10.0;
        alias = "/";
        block = "disk_space";
        info_type = "available";
        interval = 60;
        path = "/";
        unit = "GB";
        warning = 20.0;
      }
      {
        block = "memory";
        display_type = "memory";
        format_mem = "{mem_used_percents}";
        format_swap = "{swap_used_percents}";
      }
      {
        block = "cpu";
        interval = 1;
      }
      {
        block = "load";
        format = "{1m}";
        interval = 1;
      }
      {
        block = "sound";
      }
      {
        block = "time";
        format = "%a %d/%m %R";
        interval = 60;
      }
    ];
  };
}
Example
bottom = {
  blocks = [
    {
       block = "disk_space";
       path = "/";
       alias = "/";
       info_type = "available";
       unit = "GB";
       interval = 60;
       warning = 20.0;
       alert = 10.0;
     }
     {
       block = "memory";
       display_type = "memory";
       format_mem = "{mem_used_percents}";
       format_swap = "{swap_used_percents}";
     }
     {
       block = "cpu";
       interval = 1;
     }
     {
       block = "load";
       interval = 1;
       format = "{1m}";
     }
     { block = "sound"; }
     {
       block = "time";
       interval = 60;
       format = "%a %d/%m %R";
     }
  ];
  settings = {
    theme =  {
      name = "solarized-dark";
      overrides = {
        idle_bg = "#123456";
        idle_fg = "#abcdef";
      };
    };
  };
  icons = "awesome5";
  theme = "gruvbox-dark";
};