commit d6e1ee2d774c7cd205e6fd371f4e0bcae8f2e100
parent 5f22149909637b6d5e89f135410008d4139469eb
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Fri, 23 Oct 2020 23:09:50 +0200
mutt: started colorizing
And dynamic theme is possible! Yay!
Former-commit-id: 9de863817c6ae408b496a4fd29ec5f03c00510de
Diffstat:
3 files changed, 46 insertions(+), 1 deletion(-)
diff --git a/mutt/colors-dark b/mutt/colors-dark
@@ -0,0 +1,37 @@
+color normal color7 color16
+color index color13 color16 '.*'
+color index bold color7 color16 '~N'
+color index_author color8 color16 '.*'
+color index_author bold color6 color16 '~N'
+color index_number color11 color16
+color index_subject color4 color16 '.*'
+color index_subject bold color3 color16 '~N'
+color indicator default color1
+
+color header blue color16 ".*"
+color header brightmagenta color16 "^(From)"
+color header brightcyan color16 "^(Subject)"
+color header brightwhite color16 "^(CC|BCC)"
+color body brightred color16 "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
+color body brightblue color16 "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
+color body green color16 "\`[^\`]*\`" # Green text between ` and `
+color body brightblue color16 "^# \.*" # Headings as bold blue
+color body brightcyan color16 "^## \.*" # Subheadings as bold cyan
+color body brightgreen color16 "^### \.*" # Subsubheadings as bold green
+color body yellow color16 "^(\t| )*(-|\\*) \.*" # List items as yellow
+color body brightcyan color16 "[;:][-o][)/(|]" # emoticons
+color body brightcyan color16 "[;:][)(|]" # emoticons
+color body brightcyan color16 "[ ][*][^*]*[*][ ]?" # more emoticon?
+color body brightcyan color16 "[ ]?[*][^*]*[*][ ]" # more emoticon?
+color body red color16 "(BAD signature)"
+color body cyan color16 "(Good signature)"
+color body brightblack color16 "^gpg: Good signature .*"
+color body brightyellow color16 "^gpg: "
+color body brightyellow red "^gpg: BAD signature from.*"
+color attachment color11 color16
+color quoted green color16
+color quoted1 blue color16
+color quoted2 cyan color16
+color quoted3 yellow color16
+color quoted4 red color16
+color quoted5 brightred color16
diff --git a/mutt/colors-light b/mutt/colors-light
@@ -0,0 +1,6 @@
+color normal color7 default
+color index color12 default '.*'
+color index bold color2 default '~N'
+color index_author color16 default '.*'
+color index_author bold color16 default '~N'
+color indicator color5 color13
diff --git a/mutt/muttrc b/mutt/muttrc
@@ -1,4 +1,6 @@
-# vim: filetype=neomuttrc
+# vim: filetype=neomuttrc foldmethod=marker
+source `{ [ -f ~/.config/dark-theme ] && printf "colors-dark"; } || printf "colors-light";`
+
# Personal account
set mbox_type = Maildir
set mail_check=0 # minimum time between scans