1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 00:21:04 +01:00
This commit is contained in:
khaneliman 2025-09-19 15:44:26 +00:00
parent 0c6bcf6d27
commit 25c485fdc4

View file

@ -78975,6 +78975,160 @@ return {
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.wleave.enable"></a><a class="term" href="options.xhtml#opt-programs.wleave.enable"><code class="option">programs.wleave.enable</code>
</a>
</span>
</dt>
<dd>
<p>Whether to enable wleave.</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/wleave.nix" target="_top">
&lt;home-manager/modules/programs/wleave.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.wleave.package"></a><a class="term" href="options.xhtml#opt-programs.wleave.package"><code class="option">programs.wleave.package</code>
</a>
</span>
</dt>
<dd>
<p>The wleave package to use.</p>
<p><span class="emphasis"><em>Type:</em></span>
null or package</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">pkgs.wleave</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/wleave.nix" target="_top">
&lt;home-manager/modules/programs/wleave.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.wleave.settings"></a><a class="term" href="options.xhtml#opt-programs.wleave.settings"><code class="option">programs.wleave.settings</code>
</a>
</span>
</dt>
<dd>
<p>Configuration for wleave.
See <a class="link" href="https://github.com/AMNatty/wleave#configuration" target="_top">https://github.com/AMNatty/wleave#configuration</a> for supported values.</p>
<p><span class="emphasis"><em>Type:</em></span>
JSON 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><code class="programlisting">{
margin = 200;
buttons-per-row = &quot;1/1&quot;;
delay-command-ms = 100;
close-on-lost-focus = true;
show-keybinds = true;
buttons = [
{
label = &quot;lock&quot;;
action = &quot;swaylock&quot;;
text = &quot;Lock&quot;;
keybind = &quot;l&quot;;
icon = &quot;${pkgs.wleave}/share/wleave/icons/lock.svg&quot;;
}
{
label = &quot;logout&quot;;
action = &quot;loginctl terminate-user $USER&quot;;
text = &quot;Logout&quot;;
keybind = &quot;e&quot;;
icon = &quot;${pkgs.wleave}/share/wleave/icons/logout.svg&quot;;
}
{
label = &quot;shutdown&quot;;
action = &quot;systemctl poweroff&quot;;
text = &quot;Shutdown&quot;;
keybind = &quot;s&quot;;
icon = &quot;${pkgs.wleave}/share/wleave/icons/shutdown.svg&quot;;
}
];
}
</code></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/wleave.nix" target="_top">
&lt;home-manager/modules/programs/wleave.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.wleave.style"></a><a class="term" href="options.xhtml#opt-programs.wleave.style"><code class="option">programs.wleave.style</code>
</a>
</span>
</dt>
<dd>
<p>CSS style of wleave.</p><p>See <a class="link" href="https://github.com/AMNatty/wleave#styling" target="_top">https://github.com/AMNatty/wleave#styling</a>
for the documentation.</p><p>If the value is set to a path literal, then the path will be used as the css file.</p>
<p><span class="emphasis"><em>Type:</em></span>
null or absolute path or strings concatenated with “\n”</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">null</code></p>
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting">&#x27;&#x27;
window {
background-color: rgba(12, 12, 12, 0.8);
}
button {
color: var(--view-fg-color);
background-color: var(--view-bg-color);
border: none;
padding: 10px;
}
button:hover,
button:focus {
color: var(--accent-color);
background-color: var(--window-bg-color);
}
&#x27;&#x27;
</code></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/wleave.nix" target="_top">
&lt;home-manager/modules/programs/wleave.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.wlogout.enable"></a><a class="term" href="options.xhtml#opt-programs.wlogout.enable"><code class="option">programs.wlogout.enable</code>