From a406117232e975cc7a8a5579eada808a8d04d570 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Sun, 1 Jun 2025 21:05:00 -0500 Subject: [PATCH] home/aerc | more tweeking --- home/common/aerc.nix | 38 +++++++++++++++----------------------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/home/common/aerc.nix b/home/common/aerc.nix index 85d75b2..a8f480e 100644 --- a/home/common/aerc.nix +++ b/home/common/aerc.nix @@ -4,11 +4,19 @@ extraConfig = { ui = { # styleset-name = "dracula"; - reverse-msglist-order = " true"; + reverse-msglist-order = "true"; select-last-message = "true"; - msglist-scroll-offset = " 1"; + msglist-scroll-offset = "1"; threading-enabled = " true"; - threading-by-subject = " true"; + threading-by-subject = "true"; + index-columns = "flags>=,date<=,name<20,subject<*,notmuch>="; + column-notmuch = + "{{- (map .Labels (exclude .Folder) (exclude \"replied|passed|attachment|flagged|unread|draft\") | join \",\") -}}"; + }; + + hooks = { + aerc-startup = + "aerc :terminal ikhal && aerc :terminal domailtask.sh && aerc :next-tab"; }; # viewer = { alternatives = "text/html,text/plain"; }; @@ -17,6 +25,10 @@ focus-body = "false"; address-book-cmd = "khard email --parsable -- %s"; file-picker-cmd = "lf %s"; + header-layout = "Subject,From,To,Cc"; + reply-to-self = "false"; + empty-subject-warning = true; + no-attachment-warning = "attach(ed|ment)"; }; filters = { @@ -35,44 +47,24 @@ openers = { "application/octet-stream" = "catdoc %s"; "application/ms-tnef" = "tnef -w %s"; - # "application/msword" = "catdoc %s"; - # "application/octet-stream" = "unzip -v %s"; - # "application/pdf" = "pdftotext %s -"; "application/pdf" = "mutt_bgrun pdfview %s"; - # "application/vnd.ms-excel" = "excel2text %s"; "application/x-vCalendar" = "mutt-remind"; "application/x-zip-compressed" = "unzip -v %s"; - # "application/vnd.openxmlformats-officedocument.wordprocessingml.document" = - # "docx2txt %s"; "application/vnd.openxmlformats-officedocument.wordprocessingml.document" = "mutt_bgrun libreoffice %s"; - # "application/msword" = "catdoc %s"; "application/msword" = "mutt_bgrun libreoffice %s"; - # "application/vnd.msword" = "catdoc %s"; "application/vnd.msword" = "mutt_bgrun libreoffice %s"; - # "application/excel" = "excel2text %s"; "application/excel" = "mutt_bgrun libreoffice %s"; - # "application/msexcel" = "excel2text %s"; "application/msexcel" = "mutt_bgrun libreoffice %s"; - # "application/vnd.ms-excel" = "excel2text %s"; "application/vnd.ms-excel" = "mutt_bgrun libreoffice %s"; - # "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" = - # "excel2text %s"; "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" = "mutt_bgrun libreoffice %s"; - # "application/x-excel" = "excel2text %s"; "application/x-excel" = "mutt_bgrun libreoffice %s"; - # "application/x-msexcel" = "excel2text %s"; "application/x-msexcel" = "mutt_bgrun libreoffice %s"; - # "application/ms-Excel" = "excel2text %s"; "application/ms-Excel" = "mutt_bgrun libreoffice %s"; - # "application/vnd.ms-powerpoint" = "ppt2text %s"; "application/vnd.ms-powerpoint" = "mutt_bgrun libreoffice %s"; - # "application/x-mspowerpoint" = "ppt2text %s"; "application/x-mspowerpoint" = "mutt_bgrun libreoffice %s"; - # "application/ppt" = "ppt2text %s"; "application/ppt" = "mutt_bgrun libreoffice %s"; - # "application/x-loimpress" = "ppt2text %s"; "application/x-loimpress" = "mutt_bgrun libreoffice %s"; "application/zip" = "unzip -v %s"; "image/*" = "mutt_bgrun imv %s";