From b419631529b0d45af2f89f8eb712b0461688b2ab Mon Sep 17 00:00:00 2001 From: ncfavier Date: Thu, 16 Mar 2023 11:49:57 +0000 Subject: [PATCH] deploy: b832390db376fbbf44115904cfab6680fb42e076 --- options.html | 79 ++++++++++++++++++++++++---------------------------- 1 file changed, 37 insertions(+), 42 deletions(-) diff --git a/options.html b/options.html index 9ceb6f49b..3759e7f71 100644 --- a/options.html +++ b/options.html @@ -3346,19 +3346,16 @@ for options.

Type: attribute set of 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}"; + format = " $icon mem_used_percents "; + format_alt = " $icon $swap_used_percents "; } { block = "cpu"; @@ -3366,7 +3363,7 @@ for options.

Type: attribute set of } { block = "load"; - format = "{1m}"; + format = " $icon $1m "; interval = 1; } { @@ -3374,7 +3371,7 @@ for options.

Type: attribute set of } { block = "time"; - format = "%a %d/%m %R"; + format = " $timestamp.datetime(f:'%a %d/%m %R') "; interval = 60; } ]; @@ -3384,18 +3381,15 @@ for options.

Type: attribute set of { 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}"; + format_mem = " $icon $mem_used_percents "; + format_swap = " $icon $swap_used_percents "; } { block = "cpu"; @@ -3404,18 +3398,18 @@ for options.

Type: attribute set of { block = "load"; interval = 1; - format = "{1m}"; + format = " $icon $1m "; } { block = "sound"; } { block = "time"; interval = 60; - format = "%a %d/%m %R"; + format = " $timestamp.datetime(f:'%a %d/%m %R') "; } ]; settings = { theme = { - name = "solarized-dark"; + theme = "solarized-dark"; overrides = { idle_bg = "#123456"; idle_fg = "#abcdef"; @@ -3431,70 +3425,71 @@ for options.

Type: attribute set of config. See https://github.com/greshake/i3status-rust/blob/master/blocks.md for block options.

Type: TOML value

Default:

[
+  {
+    block = "cpu";
+  }
   {
     alert = 10.0;
-    alias = "/";
     block = "disk_space";
+    format = " $icon root: $available.eng(w:2) ";
     info_type = "available";
-    interval = 60;
+    interval = 20;
     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;
+    format = " $icon $mem_total_used_percents.eng(w:2) ";
+    format_alt = " $icon_swap $swap_used_percents.eng(w:2) ";
   }
   {
     block = "sound";
+    click = [
+      {
+        button = "left";
+        cmd = "pavucontrol";
+      }
+    ];
   }
   {
     block = "time";
-    format = "%a %d/%m %R";
-    interval = 60;
+    format = " $timestamp.datetime(f:'%a %d/%m %R') ";
+    interval = 5;
   }
 ]

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";
+    format = " $icon $output_name {$volume.eng(w:2) |}";
+    click = [
+      {
+        button = "left";
+        cmd = "pavucontrol --tab=3";
+      }
+    ];
     mappings = {
-     "alsa_output.pci-0000_00_1f.3.analog-stereo" = "";
-     "bluez_sink.70_26_05_DA_27_A4.a2dp_sink" = "";
+      "alsa_output.pci-0000_00_1f.3.analog-stereo" = "";
+      "bluez_sink.70_26_05_DA_27_A4.a2dp_sink" = "";
     };
   }
 ];
 

Declared by:

<home-manager/modules/programs/i3status-rust.nix>
programs.i3status-rust.bars.<name>.icons

The icons set to use. See -https://github.com/greshake/i3status-rust/blob/master/themes.md -for a list of available icon sets.

Type: string

Default: "none"

Example: "awesome5"

Declared by:

+https://github.com/greshake/i3status-rust/blob/master/doc/themes.md +for a list of available icon sets.

Type: string

Default: "none"

Example: "awesome6"

Declared by:

<home-manager/modules/programs/i3status-rust.nix>
programs.i3status-rust.bars.<name>.settings

Any extra options to add to i3status-rust config.

Type: TOML value

Default: { }

Example:

{
   theme =  {
-    name = "solarized-dark";
+    theme = "solarized-dark";
     overrides = {
       idle_bg = "#123456";
       idle_fg = "#abcdef";
@@ -3504,7 +3499,7 @@ for a list of available icon sets.

Type:

Declared by:

<home-manager/modules/programs/i3status-rust.nix>
programs.i3status-rust.bars.<name>.theme

The theme to use. See -https://github.com/greshake/i3status-rust/blob/master/themes.md +https://github.com/greshake/i3status-rust/blob/master/doc/themes.md for a list of available themes.

Type: string

Default: "plain"

Example: "gruvbox-dark"

Declared by:

<home-manager/modules/programs/i3status-rust.nix>
programs.info.enable

Whether to enable GNU Info.

Type: boolean

Default: false

Example: true

Declared by: