option

programs.i3status-rust.bars.<name>.blocks

Configuration blocks to add to i3status-rust config. See https://github.com/greshake/i3status-rust/blob/master/blocks.md for block options.

Declarations
Type
TOML value
Default
[
  {
    alert = 10;
    alias = "/";
    block = "disk_space";
    info_type = "available";
    interval = 60;
    path = "/";
    unit = "GB";
    warning = 20;
  }
  {
    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
[
  {
    block = "disk_space";
    path = "/";
    alias = "/";
    info_type = "available";
    unit = "GB";
    interval = 60;
    warning = 20.0;
    alert = 10.0;
  }
  {
    block = "sound";
    format = "{output_name} {volume}%";
    on_click = "pavucontrol --tab=3";
    mappings = {
     "alsa_output.pci-0000_00_1f.3.analog-stereo" = "";
     "bluez_sink.70_26_05_DA_27_A4.a2dp_sink" = "";
    };
  }
];