From afd44279d27cefb6030efb9e1b4cf06447ff6c16 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 31 Oct 2022 23:43:14 -0400 Subject: [PATCH] tweaks to aerc, replace delete with move to trash --- modules/applications/media.nix | 1 + modules/mail/aerc.nix | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/applications/media.nix b/modules/applications/media.nix index 1c8eb7a..c7e69a4 100644 --- a/modules/applications/media.nix +++ b/modules/applications/media.nix @@ -5,6 +5,7 @@ mpv # Video viewer sxiv # Image viewer mupdf # PDF viewer + zathura # PDF viewer ]; }; diff --git a/modules/mail/aerc.nix b/modules/mail/aerc.nix index 348fe75..39ca79a 100644 --- a/modules/mail/aerc.nix +++ b/modules/mail/aerc.nix @@ -51,7 +51,7 @@ "" = ":view"; d = ":prompt 'Really delete this message?' 'delete-message'"; - D = ":delete"; + D = ":move Trash"; A = ":archive flat"; C = ":compose"; @@ -81,7 +81,7 @@ O = ":open"; S = ":save"; "|" = ":pipe"; - D = ":delete"; + D = ":move Trash"; A = ":archive flat"; "" = ":open-link "; @@ -167,13 +167,14 @@ "message/rfc822" = "${pkgs.gawk}/bin/awk -f ${pkgs.aerc}/share/aerc/filters/colorize"; "application/x-sh" = "${pkgs.bat}/bin/bat -fP -l sh"; + "application/pdf" = "${pkgs.zathura}/bin/zathura -"; }; }; }; accounts.email.accounts.home.aerc = { enable = true; extraAccounts = { - check-mail = "1m"; + check-mail = "5m"; check-mail-cmd = "${pkgs.isync}/bin/mbsync -a"; }; };