feat: manual darkman switching

This commit is contained in:
2026-10-05 12:09:28 +02:00
parent fc4fa21a0f
commit 4274971337
9 changed files with 364 additions and 22 deletions
+18
View File
@@ -75,6 +75,23 @@
default = false;
};
};
darkman = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Add a light/dark mode toggle to the control center and the
`theme-toggle` / `theme-set-light` / `theme-set-dark` actions
(`sims-cli theme toggle|light|dark`). Switches darkman via its
control socket.
'';
};
socket_path = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
description = "darkman control socket; null means \${XDG_RUNTIME_DIR}/darkman/control.sock";
};
};
battery = {
enable = lib.mkOption {
type = lib.types.bool;
@@ -314,6 +331,7 @@
};
default = {
vinyl.enable = false;
darkman.enable = false;
battery.enable = false;
buddy.enable = false;
height = 40;