feat: manual darkman switching
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user