2022-11-09 00:11:02 +00:00
|
|
|
{ config, pkgs, ... }: {
|
2022-10-10 21:54:15 +00:00
|
|
|
# dark-mode-notify configuration
|
|
|
|
launchd.agents.dark-mode-notify =
|
2023-08-23 00:50:29 +00:00
|
|
|
let logPath = "${config.xdg.stateHome}/dark-mode-notify";
|
|
|
|
in {
|
2022-10-10 21:54:15 +00:00
|
|
|
enable = true;
|
|
|
|
config = {
|
|
|
|
Label = "ke.bou.dark-mode-notify";
|
|
|
|
KeepAlive = true;
|
|
|
|
StandardErrorPath = "${logPath}/error.log";
|
|
|
|
StandardOutPath = "${logPath}/out.log";
|
|
|
|
ProgramArguments = [
|
|
|
|
"${pkgs.dark-mode-notify}/bin/dark-mode-notify"
|
|
|
|
"${pkgs.fish}/bin/fish"
|
|
|
|
"-c"
|
|
|
|
"set-background-to-env DARKMODE"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|