aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-07-26 19:37:26 +0300
committerawy <awy@awy.one>2025-07-26 19:37:26 +0300
commit4c774016396dda7814a939f1a9578c6abd76e0bf (patch)
tree0ded647770e942cf7c55515c28aeddecfe356001
parent9f69468ed15db4230864cc0e6b971e0aa79753a9 (diff)
nord theme by default
-rwxr-xr-xbin/mw1
-rw-r--r--share/nord.muttrc37
2 files changed, 38 insertions, 0 deletions
diff --git a/bin/mw b/bin/mw
index 2101cdd..58a8be6 100755
--- a/bin/mw
+++ b/bin/mw
@@ -94,6 +94,7 @@ prepmutt() {
envsubst <"$mutttemp" >"$accdir/$fulladdr.muttrc"
[ ! -f "$muttrc" ] && echo "# vim: filetype=neomuttrc" >"$muttrc"
! grep -q "^source.*mutt-wizard.muttrc" "$muttrc" && echo "source $muttshare/mutt-wizard.muttrc" >>"$muttrc"
+ ! grep -q "^source.*nord.muttrc" "$muttrc" && echo "source $muttshare/nord.muttrc" >>"$muttrc"
! grep "^source.*.muttrc" "$muttrc" | grep -qv "$muttshare/mutt-wizard.muttrc" && echo "source $accdir/$fulladdr.muttrc" >>"$muttrc"
echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source $accdir/$fulladdr.muttrc<enter><change-folder>!<enter>;<check-stats>' \"switch to $fulladdr\"" >>"$muttrc"
neomutt -v | grep -q lmdb && ! grep -q "^set header_cache_backend.*lmdb" "$muttrc" && echo "set header_cache_backend = \"lmdb\"" >>"$muttrc"
diff --git a/share/nord.muttrc b/share/nord.muttrc
new file mode 100644
index 0000000..ca0b851
--- /dev/null
+++ b/share/nord.muttrc
@@ -0,0 +1,37 @@
+# global
+
+color normal default default
+color error brightred default
+color status white blue
+color message brightgreen default
+color search yellow default
+color attachment brightmagenta default
+color signature cyan default
+
+# header
+color header brightcyan default "^(From|To|Cc|Bcc|Reply-To)"
+color header brightblue default "^Subject"
+color header brightwhite default "^Date"
+
+# index (email list)
+color index white default "~R" # Read
+color index brightblue default "~N" # New
+color index brightcyan default "~U" # Unread
+color index yellow default "~F" # Flagged
+color index magenta default "~T" # Tagged
+color index_author blue default "~R"
+color index_author brightblue default "~N"
+
+# quoted text in emails
+color quoted blue default
+color quoted1 cyan default
+color quoted2 magenta default
+color quoted3 brightmagenta default
+
+# tilde and markers
+color tilde cyan default
+color markers black cyan
+
+# links and emails in the body
+color body brightblue default "https?://[^ \"\t\r\n]+"
+color body magenta default "[^ ]+@[^ ]+"