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 = [ blocks = [
{ {
alert = 10.0; alert = 10.0;
alias = "/";
block = "disk_space"; block = "disk_space";
info_type = "available"; info_type = "available";
interval = 60; interval = 60;
path = "/"; path = "/";
unit = "GB";
warning = 20.0; warning = 20.0;
} }
{ {
block = "memory"; block = "memory";
display_type = "memory"; format = " $icon mem_used_percents ";
format_mem = "{mem_used_percents}"; format_alt = " $icon $swap_used_percents ";
format_swap = "{swap_used_percents}";
} }
{ {
block = "cpu"; block = "cpu";
@ -3366,7 +3363,7 @@ for options.</p><p><span class="emphasis"><em>Type:</em></span> attribute set of
} }
{ {
block = "load"; block = "load";
format = "{1m}"; format = " $icon $1m ";
interval = 1; interval = 1;
} }
{ {
@ -3374,7 +3371,7 @@ for options.</p><p><span class="emphasis"><em>Type:</em></span> attribute set of
} }
{ {
block = "time"; block = "time";
format = "%a %d/%m %R"; format = " $timestamp.datetime(f:'%a %d/%m %R') ";
interval = 60; interval = 60;
} }
]; ];
@ -3384,18 +3381,15 @@ for options.</p><p><span class="emphasis"><em>Type:</em></span> attribute set of
{ {
block = "disk_space"; block = "disk_space";
path = "/"; path = "/";
alias = "/";
info_type = "available"; info_type = "available";
unit = "GB";
interval = 60; interval = 60;
warning = 20.0; warning = 20.0;
alert = 10.0; alert = 10.0;
} }
{ {
block = "memory"; block = "memory";
display_type = "memory"; format_mem = " $icon $mem_used_percents ";
format_mem = "{mem_used_percents}"; format_swap = " $icon $swap_used_percents ";
format_swap = "{swap_used_percents}";
} }
{ {
block = "cpu"; block = "cpu";
@ -3404,18 +3398,18 @@ for options.</p><p><span class="emphasis"><em>Type:</em></span> attribute set of
{ {
block = "load"; block = "load";
interval = 1; interval = 1;
format = "{1m}"; format = " $icon $1m ";
} }
{ block = "sound"; } { block = "sound"; }
{ {
block = "time"; block = "time";
interval = 60; interval = 60;
format = "%a %d/%m %R"; format = " $timestamp.datetime(f:'%a %d/%m %R') ";
} }
]; ];
settings = { settings = {
theme = { theme = {
name = "solarized-dark"; theme = "solarized-dark";
overrides = { overrides = {
idle_bg = "#123456"; idle_bg = "#123456";
idle_fg = "#abcdef"; idle_fg = "#abcdef";
@ -3431,54 +3425,55 @@ for options.</p><p><span class="emphasis"><em>Type:</em></span> attribute set of
<code class="filename">config</code>. See <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> <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">[ 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; alert = 10.0;
alias = "/";
block = "disk_space"; block = "disk_space";
format = " $icon root: $available.eng(w:2) ";
info_type = "available"; info_type = "available";
interval = 60; interval = 20;
path = "/"; path = "/";
unit = "GB";
warning = 20.0; warning = 20.0;
} }
{ {
block = "memory"; block = "memory";
display_type = "memory"; format = " $icon $mem_total_used_percents.eng(w:2) ";
format_mem = "{mem_used_percents}"; format_alt = " $icon_swap $swap_used_percents.eng(w:2) ";
format_swap = "{swap_used_percents}";
}
{
block = "cpu";
interval = 1;
}
{
block = "load";
format = "{1m}";
interval = 1;
} }
{ {
block = "sound"; block = "sound";
click = [
{
button = "left";
cmd = "pavucontrol";
}
];
} }
{ {
block = "time"; block = "time";
format = "%a %d/%m %R"; format = " $timestamp.datetime(f:'%a %d/%m %R') ";
interval = 60; interval = 5;
} }
]</pre><p><span class="emphasis"><em>Example:</em></span> </p><pre class="programlisting">[ ]</pre><p><span class="emphasis"><em>Example:</em></span> </p><pre class="programlisting">[
{ {
block = "disk_space"; block = "disk_space";
path = "/"; path = "/";
alias = "/";
info_type = "available"; info_type = "available";
unit = "GB";
interval = 60; interval = 60;
warning = 20.0; warning = 20.0;
alert = 10.0; alert = 10.0;
} }
{ {
block = "sound"; block = "sound";
format = "{output_name} {volume}%"; format = " $icon $output_name {$volume.eng(w:2) |}";
on_click = "pavucontrol --tab=3"; click = [
{
button = "left";
cmd = "pavucontrol --tab=3";
}
];
mappings = { mappings = {
"alsa_output.pci-0000_00_1f.3.analog-stereo" = ""; "alsa_output.pci-0000_00_1f.3.analog-stereo" = "";
"bluez_sink.70_26_05_DA_27_A4.a2dp_sink" = ""; "bluez_sink.70_26_05_DA_27_A4.a2dp_sink" = "";
@ -3488,13 +3483,13 @@ for block options.</p><p><span class="emphasis"><em>Type:</em></span> TOML value
</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"> </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; &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></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> <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">"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"> 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; &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 </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">{ <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 = { theme = {
name = "solarized-dark"; theme = "solarized-dark";
overrides = { overrides = {
idle_bg = "#123456"; idle_bg = "#123456";
idle_fg = "#abcdef"; 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"> </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; &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></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"> 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; &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"> </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">