Update config

This commit is contained in:
2020-04-08 21:52:21 +04:00
parent 73187d9344
commit d1b5037e15
20 changed files with 4633 additions and 518 deletions

View File

@@ -0,0 +1,6 @@
color compose header color223 color234
color compose security_encrypt color175 color234
color compose security_sign color109 color234
color compose security_both color142 color234
color compose security_none color208 color234

View File

@@ -0,0 +1,81 @@
# gruvbox dark (contrast dark):
# bg0 = 234
# bg1 = 237
# bg2 = 239
# bg3 = 241
# bg4 = 243
#
# gray = 245
#
# fg0 = 229
# fg1 = 223
# fg2 = 250
# fg3 = 248
# fg4 = 246
#
# red = 167
# green = 142
# yellow = 214
# blue = 109
# purple = 175
# aqua = 108
# orange = 208
# See http://www.mutt.org/doc/manual/#color
color attachment color109 color234
color bold color229 color234
color error color167 color234
color hdrdefault color246 color234
color indicator color223 color237
color markers color243 color234
color normal color223 color234
color quoted color250 color234
color quoted1 color108 color234
color quoted2 color250 color234
color quoted3 color108 color234
color quoted4 color250 color234
color quoted5 color108 color234
color search color234 color208
color signature color108 color234
color status color234 color250
color tilde color243 color234
color tree color142 color234
color underline color223 color239
color sidebar_divider color250 color234
color sidebar_new color142 color234
color index color142 color234 ~N
color index color108 color234 ~O
color index color109 color234 ~P
color index color214 color234 ~F
color index color175 color234 ~Q
color index color167 color234 ~=
color index color234 color223 ~T
color index color234 color167 ~D
color header color214 color234 "^(To:|From:)"
color header color142 color234 "^Subject:"
color header color108 color234 "^X-Spam-Status:"
color header color108 color234 "^Received:"
color body color142 color234 "[a-z]{3,256}://[-a-zA-Z0-9@:%._\\+~#=/?&,]+"
#color body color142 color234 "[a-zA-Z]([-a-zA-Z0-9_]+\\.){2,256}[-a-zA-Z0-9_]{2,256}"
color body color208 color234 "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
color body color208 color234 "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
color body color234 color214 "[;:]-*[)>(<lt;|]"
color body color229 color234 "\\*[- A-Za-z]+\\*"
color body color214 color234 "^-.*PGP.*-*"
color body color142 color234 "^gpg: Good signature from"
color body color167 color234 "^gpg: Can't.*$"
color body color214 color234 "^gpg: WARNING:.*$"
color body color167 color234 "^gpg: BAD signature from"
color body color167 color234 "^gpg: Note: This key has expired!"
color body color214 color234 "^gpg: There is no indication that the signature belongs to the owner."
color body color214 color234 "^gpg: can't handle these multiple signatures"
color body color214 color234 "^gpg: signature verification suppressed"
color body color214 color234 "^gpg: invalid node with packet of type"

View File

@@ -1 +1,4 @@
text/html; elinks -dump ; copiousoutput;
text/html; elinks %s; nametemplate=%s.html
text/html; elinks -dump %s; nametemplate=%s.html; copiousoutput
application/pdf; xdg-open %s; copiousoutput
image/*; xdg-open %s

View File

@@ -19,56 +19,6 @@ set index_format='%4C %Z %<[y?%<[m?%<[d?%[%H:%M ]&%[%a %d]>&%[%b %d]>&%[%m/%y ]>
# %[y This year %[%b %d] Dec 10
# — Older %[%m/%y ] 06/15
# Color if the attachment is autoviewed
color attach_headers brightgreen default "Autoview"
# Color only the brackets around the headers
color attach_headers brightyellow default "^\\[--"
color attach_headers brightyellow default "--]$"
# Color the mime type and the size
color attach_headers green default "Type: [a-z]+/[a-z0-9\-]+"
color attach_headers green default "Size: [0-9\.]+[KM]"
# Color GPGME signature checks
color attach_headers brightgreen default "Good signature from.*"
color attach_headers brightred default "Bad signature from.*"
color attach_headers brightred default "BAD signature from.*"
color attach_headers brightred default "Note: This key has expired!"
color attach_headers brightmagenta default "Problem signature from.*"
color attach_headers brightmagenta default "WARNING: This key is not certified with a trusted signature!"
color attach_headers brightmagenta default " There is no indication that the signature belongs to the owner."
color attach_headers brightmagenta default "can't handle these multiple signatures"
color attach_headers brightmagenta default "signature verification suppressed"
color attach_headers brightmagenta default "invalid node with packet of type"
# Entire index line
color index white black '.*'
# Author name, %A %a %F %L %n
# Give the author column a dark grey background
color index_author default color234 '.*'
# Highlight a particular from (~f)
# color index_author brightyellow color234 '~fRay Charles'
# Message flags, %S %Z
# Highlight the flags for flagged (~F) emails
color index_flags default red '~F'
# Subject, %s
# Look for a particular subject (~s)
# color index_subject brightcyan default '~s\(closes #[0-9]+\)'
# Number of messages in a collapsed thread, %M
color index_collapsed default brightblue
# Date field
color index_date green default
# Message label, %y %Y
color index_label default brightgreen
# Message number, %C
color index_number red default
# Message size, %c %l
color index_size cyan default
# The 'progress' feature provides clear visual feedback for
# slow tasks, such as indexing a large folder over the net.
# Set the color of the progress bar
# White text on a red background
color progress white red
# Limit view to current thread
bind index <esc>L limit-current-thread
@@ -80,46 +30,48 @@ bind index <esc>L limit-current-thread
# Show three quoted lines before the reply
set skip_quoted_offset = 3
set new_mail_command="notify-send 'New e-mail' '%n new messages, %u unread.' &"
# Macros
macro index Z "<shell-escape>mbsync -a<enter>" "Sync all"
# More vim-like bindings
# bind index i noop
bind attach,index g noop # clear for next binding
bind attach,index gg first-entry
bind attach,index G last-entry
bind index N search-opposite
# bind pager i exit
# bind pager q toggle-quoted
bind pager / search
# QWERTY
bind pager j next-line
bind pager k previous-line
bind pager g noop # clear for next binding
bind pager gg top
bind pager G bottom
bind index,pager \# noop
bind index,pager \& noop
bind index,pager R group-reply
## Keys
bind pager j next-line
bind pager k previous-line
bind attach,index,pager \CD next-page
bind attach,index,pager \CU previous-page
bind pager g top
bind pager G bottom
bind attach,index g first-entry
bind attach,index G last-entry
bind index,pager B sidebar-toggle-visible
bind index \Cg imap-fetch-mail
bind index,pager \CK sidebar-prev
bind index,pager \CJ sidebar-next
bind index,pager B sidebar-toggle-visible
bind index,pager \CO sidebar-open
macro attach 'V' "<pipe-entry>cat >~/.cache/mutt/mail.html && qutebrowser file:///home/kressh/.cache/mutt/mail.html && rm ~/.cache/mutt/mail.html<enter>"
# QWERTY
bind index,pager \Ck sidebar-prev
bind index,pager \Cj sidebar-next
macro attach 'V' "<pipe-entry>cat > ~/.cache/mutt/mail.html; ~/bin/preview-html ~/.cache/mutt/mail.html; rm ~/.cache/mutt/mail.html<enter>"
macro index 'c' '<change-folder>?<change-dir><home>^K=<enter>'
# Etc
set mail_check = 30
set move = no
set imap_keepalive = 900
set sort = threads
set sort_browser = date
set sort_aux = reverse-last-date-received
set editor = "nvim"
set send_charset = "utf-8"
set sidebar_visible = no
set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
set mail_check_stats
set pager_index_lines = 10
set mailcap_path = ~/.config/mutt/mailcap
alternative_order text/plain text/html
auto_view text/html
alternative_order text/plain text/html
# GnuPG bootstrap
# source ~/.mutt/gpg.rc