-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tibor Šimko <[email protected]>
- Loading branch information
1 parent
8fab2c6
commit 99fd7d3
Showing
4 changed files
with
200 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Tibor's gruvbox colour theme for Mutt. | ||
|
||
# Inspired by https://www.sthu.org/code/codesnippets/mutt-gruvbox.html | ||
# See also http://www.mutt.org/doc/manual/#color | ||
|
||
color attachment color109 color235 | ||
color bold color229 color235 | ||
color error color167 color235 | ||
color hdrdefault color246 color235 | ||
color indicator color223 color237 | ||
color markers color243 color235 | ||
color normal color223 color235 | ||
color prompt color223 color235 | ||
color quoted color250 color235 | ||
color quoted1 color108 color235 | ||
color quoted2 color250 color235 | ||
color quoted3 color108 color235 | ||
color quoted4 color250 color235 | ||
color quoted5 color108 color235 | ||
color search color235 color208 | ||
color signature color108 color235 | ||
color status color248 color237 | ||
color tilde color243 color235 | ||
color tree color142 color235 | ||
color underline color223 color239 | ||
|
||
color sidebar_divider color250 color235 | ||
color sidebar_new color142 color235 | ||
|
||
color index color142 color235 ~N | ||
color index color108 color235 ~O | ||
color index color109 color235 ~P | ||
color index color214 color235 ~F | ||
color index color175 color235 ~Q | ||
color index color167 color235 ~= | ||
color index color235 color223 ~T | ||
color index color235 color167 ~D | ||
|
||
color header color214 color235 "^(To:|From:)" | ||
color header color142 color235 "^Subject:" | ||
color header color108 color235 "^X-Spam-Status:" | ||
color header color108 color235 "^Received:" | ||
|
||
color body color142 color235 "[a-z]{3,256}://[-a-zA-Z0-9@:%._\\+~#=/?&,]+" | ||
#color body color142 color235 "[a-zA-Z]([-a-zA-Z0-9_]+\\.){2,256}[-a-zA-Z0-9_]{2,256}" | ||
color body color208 color235 "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" | ||
color body color208 color235 "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+" | ||
color body color235 color214 "[;:]-*[)>(<lt;|]" | ||
color body color229 color235 "\\*[- A-Za-z]+\\*" | ||
|
||
color body color214 color235 "^-.*PGP.*-*" | ||
color body color142 color235 "^gpg: Good signature from" | ||
color body color167 color235 "^gpg: Can't.*$" | ||
color body color214 color235 "^gpg: WARNING:.*$" | ||
color body color167 color235 "^gpg: BAD signature from" | ||
color body color167 color235 "^gpg: Note: This key has expired!" | ||
color body color214 color235 "^gpg: There is no indication that the signature belongs to the owner." | ||
color body color214 color235 "^gpg: can't handle these multiple signatures" | ||
color body color214 color235 "^gpg: signature verification suppressed" | ||
color body color214 color235 "^gpg: invalid node with packet of type" | ||
|
||
# vi:syntax=muttrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# HTML | ||
text/html; w3m -I %{charset} -T text/html; copiousoutput; | ||
|
||
application/pdf; mupdf %s; | ||
application/x-pdf; mupdf %s; | ||
application/x-pdf; mupdf %s; | ||
|
||
# MS Excel | ||
application/x-msexcel; libreoffice --calc %s; | ||
application/ms-exc; libreoffice --calc %s; | ||
application/excel; libreoffice --calc %s; | ||
application/msexcel; libreoffice --calc %s; | ||
application/vnd.ms-exc; libreoffice --calc %s; | ||
application/vnd.ms-excel; libreoffice --calc %s; | ||
|
||
# MS Word | ||
application/msword; libreoffice --writer %s; | ||
application/vnd.sun.xml.writer; libreoffice --writer %s; | ||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; libreoffice --writer %s; | ||
application/vnd.openxmlformats-officedocument.spreadsheetml.template; libreoffice --writer %s; | ||
application/vnd.openxmlformats-officedocument.presentationml.template; libreoffice --writer %s; | ||
application/vnd.openxmlformats-officedocument.presentationml.slideshow; libreoffice --writer %s; | ||
application/vnd.openxmlformats-officedocument.presentationml.presentation; libreoffice --writer %s; | ||
application/vnd.openxmlformats-officedocument.presentationml.slide; libreoffice --writer %s; | ||
application/vnd.openxmlformats-officedocument.wordprocessingml.document; libreoffice --writer %s; | ||
application/vnd.openxmlformats-officedocument.wordprocessingml.template; libreoffice --writer %s; | ||
application/vnd.ms-excel.addin.macroEnabled.12; libreoffice --writer %s; | ||
application/vnd.ms-excel.sheet.binary.macroEnabled.12; libreoffice --writer %s; | ||
|
||
# Images | ||
image/jpeg; sxiv %s; | ||
image/pjpeg; sxiv %s; | ||
image/png; sxiv %s; | ||
image/gif; sxiv %s; | ||
image/tiff; sxiv %s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# Tibor's mutt configuration. | ||
|
||
# colour scheme | ||
source ~/.mutt/gruvbox-theme | ||
|
||
# speed | ||
set sleep_time = 0 | ||
|
||
# attachments | ||
set mailcap_path = ~/.mutt/mailcap | ||
|
||
# sort preferences | ||
set sort=threads | ||
set sort_browser=reverse-date | ||
set sort_aux=last-date-received | ||
|
||
# address book | ||
set query_command = "echo && notmuch address from:%s" | ||
set query_format="%4c %t %-70.70a %-70.70n %?e?(%e)?" | ||
bind editor <Tab> complete-query | ||
bind editor ^T complete | ||
|
||
# HTML mail | ||
auto_view text/html | ||
alternative_order text/plain text/enriched text/html | ||
|
||
# CERN | ||
set mbox_type = Maildir | ||
set folder = ~/Local/mbsyncmail | ||
set spoolfile = +INBOX | ||
set header_cache = ~/.cache/mutt | ||
set message_cachedir = ~/.cache/mutt | ||
set postponed = =Drafts | ||
set record = =Archive | ||
save-hook . =Archive | ||
|
||
# composing mail | ||
#my_hdr Bcc: Tibor Simko <[email protected]> | ||
set attribution = "On %[!%a, %d %b %Y at %H:%M], %n wrote:" | ||
set fast_reply = yes | ||
set include = yes | ||
set edit_headers | ||
set text_flowed | ||
set signature = "~/.mutt/signature" | ||
unset sig_dashes | ||
|
||
# sending mail | ||
set realname = "Tibor Simko" | ||
set from = "[email protected]" | ||
set sendmail = "/usr/bin/msmtp --account=cern" | ||
|
||
# key bindings - general vim-like | ||
bind pager g top | ||
bind pager G bottom | ||
bind attach,index g first-entry | ||
bind attach,index G last-entry | ||
bind index,pager R group-reply | ||
|
||
# key bindings - quick folder operations | ||
macro index,pager ,, "<change-folder>=INBOX<enter><limit>~U<enter>" "Shortcut to go to unread INBOX" | ||
macro index,pager ,g1 "<change-folder>=INBOX<enter><limit>~d <1d<enter>" "Go to last 1 day" | ||
macro index,pager ,g7 "<change-folder>=INBOX<enter><limit>~d <1w<enter>" "Go to 7 days" | ||
macro index,pager ,ga "<change-folder>=Archive<enter>" "Go to Archive folder" | ||
macro index,pager ,gg "<change-folder>=Github<enter>" "Go to Github folder" | ||
macro index,pager ,gi "<change-folder>=INBOX<enter>" "Go to INBOX folder" | ||
macro index,pager ,gj "<change-folder>=Junk<enter>" "Go to Junk folder" | ||
macro index,pager ,gu "<change-folder>=INBOX<enter><limit>~U<enter>" "Go to unread" | ||
|
||
# key bindings - mail archiving | ||
macro index,pager ,a ":set confirmappend=no delete=yes auto_tag=yes\n<save-message>=Archive\n<sync-mailbox>:set confirmappend=yes delete=ask-yes\n" | ||
macro index,pager ,b ":set confirmappend=no delete=yes auto_tag=yes\n<save-message>=Archive-`date +%Y`\n<sync-mailbox>:set confirmappend=yes delete=ask-yes\n" | ||
|
||
# key bindings - muttjump | ||
macro generic ,j "<enter-command>push <pipe-message>muttjump<enter><enter>" "jump to original message" | ||
|
||
# key bindings - taskwarrior | ||
macro index,pager ,T "<pipe-message>/usr/share/taskopen/scripts/mutt2task<enter>" | ||
macro index,pager ,m "<pipe-message>/usr/share/taskopen/scripts/mess2task2<enter>" | ||
macro index,pager ,M "<pipe-message>/usr/share/taskopen/scripts/mess2task<enter>" | ||
|
||
# key bindings - notmuch | ||
macro index ,s \ | ||
"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\ | ||
<shell-escape>notmuch-mutt -r --prompt search<enter>\ | ||
<change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\ | ||
<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \ | ||
"notmuch: search mail" | ||
macro index ,t \ | ||
"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\ | ||
<pipe-message>notmuch-mutt -r thread<enter>\ | ||
<change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\ | ||
<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \ | ||
"notmuch: reconstruct thread" | ||
|
||
# key bindings - mbsync | ||
macro index ,x "<shell-escape>x1-mbsync inbox<return>" "Synchronise inbox folders (fast)" | ||
macro index ,X "<shell-escape>x1-mbsync inbox archive<return>" "Synchronise inbox folders and current archive (medium)" | ||
macro index ,Y "<shell-escape>x1-mbsync all<return>" "Synchronise inbox folders and all past archives (slow)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
Best regards, | ||
|
||
Tibor |