dotfiles.nix/home/services/dark-mode-notify.nix

29 lines
617 B
Nix
Raw Normal View History

2024-07-18 14:16:04 +00:00
{
config,
pkgs,
lib,
...
}:
{
2022-10-10 21:54:15 +00:00
# dark-mode-notify configuration
launchd.agents.dark-mode-notify =
2024-07-18 14:16:04 +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-04 01:31:47 +00:00
"${lib.getExe' pkgs.dark-mode-notify "dark-mode-notify"}"
"${lib.getExe pkgs.fish}"
2022-10-10 21:54:15 +00:00
"-c"
"set-background-to-env DARKMODE"
];
};
};
}