From 26873f6f20182fb1eb99cca7daea06d59065c3a3 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Fri, 12 May 2023 18:26:36 +0200 Subject: [PATCH] Cleanup notification --- home/mail/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/home/mail/default.nix b/home/mail/default.nix index bc7f746..43d18bc 100644 --- a/home/mail/default.nix +++ b/home/mail/default.nix @@ -38,12 +38,12 @@ let enable = true; /* TODO: which boxes? */ boxes = [ "Inbox" ]; - onNotify = "${pkgs.isync}/bin/mbsync ${configName} && ${pkgs.libnotify}/bin/notify-send -a mail '${configName}: new in %s'"; - /* onNotifyPost = { */ - /* mail = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: new in %s'"; */ - /* /1* update = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: update %s'"; *1/ */ - /* /1* expunge = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: expunge %s'"; *1/ */ - /* }; */ + onNotify = "${pkgs.isync}/bin/mbsync ${configName}"; + onNotifyPost = { + mail = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: new in %s'"; + update = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: update %s'"; + expunge = "${pkgs.libnotify}/bin/notify-send -a mail '${configName}: expunge %s'"; + }; }; mbsync = { enable = true;