From 05ab96bd17e6a15aea320b89c7341b28db2d2593 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Sat, 14 May 2022 13:31:40 +0200 Subject: [PATCH] Add neomutt color settings --- roles/neomutt/templates/neomuttrc.j2 | 110 +++++++++++++-------------- 1 file changed, 54 insertions(+), 56 deletions(-) diff --git a/roles/neomutt/templates/neomuttrc.j2 b/roles/neomutt/templates/neomuttrc.j2 index cc2e242..8fff754 100644 --- a/roles/neomutt/templates/neomuttrc.j2 +++ b/roles/neomutt/templates/neomuttrc.j2 @@ -98,27 +98,27 @@ bind index,pager \Cn sidebar-next-new bind index,pager B sidebar-toggle-visible # Default index colors: -#color index yellow default '.*' -#color index_author red default '.*' -#color index_number blue default -#color index_subject cyan default '.*' +color index yellow default '.*' +color index_author red default '.*' +color index_number blue default +color index_subject cyan default '.*' # New mail is boldened: -#color index brightyellow black "~N" -#color index_author brightred black "~N" -#color index_subject brightcyan black "~N" +color index brightyellow black "~N" +color index_author brightred black "~N" +color index_subject brightcyan black "~N" # Tagged mail is highlighted: -#color index brightyellow blue "~T" -#color index_author brightred blue "~T" -#color index_subject brightcyan blue "~T" +color index brightyellow blue "~T" +color index_author brightred blue "~T" +color index_subject brightcyan blue "~T" # Other colors and aesthetic settings: -#mono bold bold -#mono underline underline -#mono indicator reverse -#mono error bold -#color normal default default +mono bold bold +mono underline underline +mono indicator reverse +mono error bold +color normal default default color indicator brightblack white color sidebar_indicator brightblack white color sidebar_spoolfile yellow default @@ -127,49 +127,47 @@ color sidebar_divider brightblack black color sidebar_new green black color sidebar_unread cyan black color sidebar_flagged red black -#color normal brightyellow default -#color error red default -#color tilde black default -#color message cyan default -#color markers red white -#color attachment white default -#color search brightmagenta default -#color status brightyellow black -#color hdrdefault brightgreen default -#color quoted green default -#color quoted1 blue default -#color quoted2 cyan default -#color quoted3 yellow default -#color quoted4 red default -#color quoted5 brightred default -#color signature brightgreen default -#color bold black default -#color underline black default -#color normal default default +color error red default +color tilde black default +color message cyan default +color markers red white +color attachment white default +color search brightmagenta default +color status yellow black +color quoted green default +color quoted1 blue default +color quoted2 cyan default +color quoted3 yellow default +color quoted4 red default +color quoted5 brightred default +color signature brightgreen default +color bold black default +color underline black default +color normal default default # Regex highlighting: -#color header brightmagenta default "^From" -#color header brightcyan default "^Subject" -#color header brightwhite default "^(CC|BCC)" -#color header blue default ".*" -#color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses -#color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL -#color body green default "\`[^\`]*\`" # Green text between ` and ` -#color body brightblue default "^# \.*" # Headings as bold blue -#color body brightcyan default "^## \.*" # Subheadings as bold cyan -#color body brightgreen default "^### \.*" # Subsubheadings as bold green -#color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow -#color body brightcyan default "[;:][-o][)/(|]" # emoticons -#color body brightcyan default "[;:][)(|]" # emoticons -#color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon? -#color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon? -#color body red default "(BAD signature)" -#color body cyan default "(Good signature)" -#color body brightblack default "^gpg: Good signature .*" -#color body brightyellow default "^gpg: " -#color body brightyellow red "^gpg: BAD signature from.*" -#mono body bold "^gpg: Good signature" -#mono body bold "^gpg: BAD signature from.*" +color header blue default ".*" +color header brightmagenta default "^(From|To)" +color header brightyellow default "^Subject" +color header brightwhite default "^(CC|BCC)" +color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # email addresses +color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # uRL +color body green default "\`[^\`]*\`" # green text between ` and ` +color body brightblue default "^# \.*" # headings as bold blue +color body brightcyan default "^## \.*" # subheadings as bold cyan +color body brightgreen default "^### \.*" # subsubheadings as bold green +color body yellow default "^(\t| )*(-|\\*) \.*" # list items as yellow +color body brightcyan default "[;:][-o][)/(|]" # emoticons +color body brightcyan default "[;:][)(|]" # emoticons +color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon? +color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon? +color body red default "(BAD signature)" +color body cyan default "(Good signature)" +color body brightblack default "^gpg: Good signature .*" +color body brightyellow default "^gpg: " +color body brightyellow red "^gpg: BAD signature from.*" +mono body bold "^gpg: Good signature" +mono body bold "^gpg: BAD signature from.*" #color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]" {% for account in accounts %}