2023-11-03 04:12:17 +00:00
|
|
|
{ config, pkgs, lib, ... }: {
|
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 = [
|
2023-11-03 04:12:17 +00:00
|
|
|
"${lib.getExe pkgs.dark-mode-notify}"
|
|
|
|
"${lib.getExe pkgs.fish}"
|
2022-10-10 21:54:15 +00:00
|
|
|
"-c"
|
|
|
|
"set-background-to-env DARKMODE"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|