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

23 lines
598 B
Nix
Raw Normal View History

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 =
2022-11-09 00:11:02 +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"
];
};
};
# }}}
}