1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 19:49:45 +01:00
This commit is contained in:
ncfavier 2023-03-16 11:49:57 +00:00
parent 1f8a6aae78
commit b419631529

View file

@ -3346,19 +3346,16 @@ for options.</p><p><span class="emphasis"><em>Type:</em></span> 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.</p><p><span class="emphasis"><em>Type:</em></span> attribute set of
}
{
block = "load";
format = "{1m}";
format = " $icon $1m ";
interval = 1;
}
{
@ -3374,7 +3371,7 @@ for options.</p><p><span class="emphasis"><em>Type:</em></span> 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.</p><p><span class="emphasis"><em>Type:</em></span> 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.</p><p><span class="emphasis"><em>Type:</em></span> 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.</p><p><span class="emphasis"><em>Type:</em></span> attribute set of
<code class="filename">config</code>. See
<a class="link" href="https://github.com/greshake/i3status-rust/blob/master/blocks.md" target="_top">https://github.com/greshake/i3status-rust/blob/master/blocks.md</a>
for block options.</p><p><span class="emphasis"><em>Type:</em></span> TOML value</p><p><span class="emphasis"><em>Default:</em></span> </p><pre class="programlisting">[
{
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;
}
]</pre><p><span class="emphasis"><em>Example:</em></span> </p><pre class="programlisting">[
{
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" = "";
};
}
];
</pre><p><span class="emphasis"><em>Declared by:</em></span></p><table border="0" summary="Simple list" class="simplelist"><tr><td><code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/i3status-rust.nix#blob-path" target="_top">
&lt;home-manager/modules/programs/i3status-rust.nix&gt;
</a></code></td></tr></table></dd><dt><span class="term"><a id="opt-programs.i3status-rust.bars._name_.icons"></a><a class="term" href="options.html#opt-programs.i3status-rust.bars._name_.icons"><code class="option">programs.i3status-rust.bars.&lt;name&gt;.icons</code></a></span></dt><dd><p>The icons set to use. See
<a class="link" href="https://github.com/greshake/i3status-rust/blob/master/themes.md" target="_top">https://github.com/greshake/i3status-rust/blob/master/themes.md</a>
for a list of available icon sets.</p><p><span class="emphasis"><em>Type:</em></span> string</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal">"none"</code></p><p><span class="emphasis"><em>Example:</em></span> <code class="literal">"awesome5"</code></p><p><span class="emphasis"><em>Declared by:</em></span></p><table border="0" summary="Simple list" class="simplelist"><tr><td><code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/i3status-rust.nix#blob-path" target="_top">
<a class="link" href="https://github.com/greshake/i3status-rust/blob/master/doc/themes.md" target="_top">https://github.com/greshake/i3status-rust/blob/master/doc/themes.md</a>
for a list of available icon sets.</p><p><span class="emphasis"><em>Type:</em></span> string</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal">"none"</code></p><p><span class="emphasis"><em>Example:</em></span> <code class="literal">"awesome6"</code></p><p><span class="emphasis"><em>Declared by:</em></span></p><table border="0" summary="Simple list" class="simplelist"><tr><td><code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/i3status-rust.nix#blob-path" target="_top">
&lt;home-manager/modules/programs/i3status-rust.nix&gt;
</a></code></td></tr></table></dd><dt><span class="term"><a id="opt-programs.i3status-rust.bars._name_.settings"></a><a class="term" href="options.html#opt-programs.i3status-rust.bars._name_.settings"><code class="option">programs.i3status-rust.bars.&lt;name&gt;.settings</code></a></span></dt><dd><p>Any extra options to add to i3status-rust
<code class="filename">config</code>.</p><p><span class="emphasis"><em>Type:</em></span> TOML value</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal">{ }</code></p><p><span class="emphasis"><em>Example:</em></span> </p><pre class="programlisting">{
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.</p><p><span class="emphasis"><em>Type:</em></
</pre><p><span class="emphasis"><em>Declared by:</em></span></p><table border="0" summary="Simple list" class="simplelist"><tr><td><code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/i3status-rust.nix#blob-path" target="_top">
&lt;home-manager/modules/programs/i3status-rust.nix&gt;
</a></code></td></tr></table></dd><dt><span class="term"><a id="opt-programs.i3status-rust.bars._name_.theme"></a><a class="term" href="options.html#opt-programs.i3status-rust.bars._name_.theme"><code class="option">programs.i3status-rust.bars.&lt;name&gt;.theme</code></a></span></dt><dd><p>The theme to use. See
<a class="link" href="https://github.com/greshake/i3status-rust/blob/master/themes.md" target="_top">https://github.com/greshake/i3status-rust/blob/master/themes.md</a>
<a class="link" href="https://github.com/greshake/i3status-rust/blob/master/doc/themes.md" target="_top">https://github.com/greshake/i3status-rust/blob/master/doc/themes.md</a>
for a list of available themes.</p><p><span class="emphasis"><em>Type:</em></span> string</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal">"plain"</code></p><p><span class="emphasis"><em>Example:</em></span> <code class="literal">"gruvbox-dark"</code></p><p><span class="emphasis"><em>Declared by:</em></span></p><table border="0" summary="Simple list" class="simplelist"><tr><td><code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/i3status-rust.nix#blob-path" target="_top">
&lt;home-manager/modules/programs/i3status-rust.nix&gt;
</a></code></td></tr></table></dd><dt><span class="term"><a id="opt-programs.info.enable"></a><a class="term" href="options.html#opt-programs.info.enable"><code class="option">programs.info.enable</code></a></span></dt><dd><p>Whether to enable GNU Info.</p><p><span class="emphasis"><em>Type:</em></span> boolean</p><p><span class="emphasis"><em>Default:</em></span> <code class="literal">false</code></p><p><span class="emphasis"><em>Example:</em></span> <code class="literal">true</code></p><p><span class="emphasis"><em>Declared by:</em></span></p><table border="0" summary="Simple list" class="simplelist"><tr><td><code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/info.nix#blob-path" target="_top">