more dotfiles

This commit is contained in:
2023-05-18 23:01:50 -04:00
parent ef72ad61bd
commit 3298229166
30 changed files with 1290 additions and 0 deletions

View File

@@ -0,0 +1,155 @@
# vim: filetype=muttrc
#
#
# make sure that you are using mutt linked against slang, not ncurses, or
# suffer the consequences of weird color issues. use "mutt -v" to check this.
#
color header green default "^From:"
color header yellow default "^Subject:"
color header black default "^X-Mailer:"
# custom body highlights -----------------------------------------------
# highlight my name and other personally relevant strings
#color body yellow default "(ethan|schoonover)"
# custom index highlights ----------------------------------------------
# messages which mention my name in the body
#color index yellow default "~b \"phil(_g|\!| gregory| gold)|pgregory\" !~N !~T !~F !~p !~P"
#color index J_cream brightwhite "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~N !~T !~F !~p !~P"
#color index yellow cyan "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~T !~F !~p !~P"
#color index yellow J_magent "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~F !~p !~P"
## messages which are in reference to my mails
#color index J_magent default "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" !~N !~T !~F !~p !~P"
#color index J_magent brightwhite "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~N !~T !~F !~p !~P"
#color index J_magent cyan "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~T !~F !~p !~P"
#color index J_magent red "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~F !~p !~P"
# for background in 16 color terminal, valid background colors include:
# base03, bg, black, any of the non brights
# basic colors ---------------------------------------------------------
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 J_black J_status
color status brightyellow black
color indicator brightblack yellow
color tree yellow default # arrow in threads
# basic monocolor screen
mono bold bold
mono underline underline
mono indicator reverse
mono error bold
# index ----------------------------------------------------------------
#color index red default "~D(!~p|~p)" # deleted
#color index black default ~F # flagged
#color index brightred default ~= # duplicate messages
#color index brightgreen default "~A!~N!~T!~p!~Q!~F!~D!~P" # the rest
#color index J_base default "~A~N!~T!~p!~Q!~F!~D" # the rest, new
color index default default "~A" # all messages
#color index brightred default "~E" # expired messages
#color index blue default "~N" # new messages
#color index blue default "~O" # old messages
#color index brightmagenta default "~Q" # messages that have been replied to
#color index brightgreen default "~R" # read messages
#color index blue default "~U" # unread messages
#color index blue default "~U~$" # unread, unreferenced messages
#color index brightyellow default "~v" # messages part of a collapsed thread
#color index brightyellow default "~P" # messages from me
#color index cyan default "~p!~F" # messages to me
#color index cyan default "~N~p!~F" # new messages to me
#color index cyan default "~U~p!~F" # unread messages to me
#color index brightgreen default "~R~p!~F" # messages to me
#color index red default "~F" # flagged messages
#color index red default "~F~p" # flagged messages to me
#color index red default "~N~F" # new flagged messages
#color index red default "~N~F~p" # new flagged messages to me
#color index red default "~U~F~p" # new flagged messages to me
#color index brightcyan default "~v~(!~N)" # collapsed thread with no unread
#color index yellow default "~v~(~N)" # collapsed thread with some unread
#color index green default "~N~v~(~N)" # collapsed thread with unread parent
# statusbg used to indicated flagged when foreground color shows other status
# for collapsed thread
#color index red black "~v~(~F)!~N" # collapsed thread with flagged, no unread
#color index yellow black "~v~(~F~N)" # collapsed thread with some unread & flagged
#color index green black "~N~v~(~F~N)" # collapsed thread with unread parent & flagged
#color index green black "~N~v~(~F)" # collapsed thread with unread parent, no unread inside, but some flagged
#color index cyan black "~v~(~p)" # collapsed thread with unread parent, no unread inside, some to me directly
#color index yellow red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial)
#color index yellow default "~(~N)" # messages in threads with some unread
#color index green default "~S" # superseded messages
#color index red default "~T" # tagged messages
#color index brightred red "~=" # duplicated messages
# message headers ------------------------------------------------------
#color header brightgreen default "^"
color hdrdefault brightgreen default
#color header brightyellow default "^(From)"
#color header blue default "^(Subject)"
# body -----------------------------------------------------------------
color quoted blue default
color quoted1 cyan default
color quoted2 yellow default
color quoted3 red default
color quoted4 brightred default
color signature brightgreen default
color bold black default
color underline black default
color normal default default
#
color body brightcyan default "[;:][-o][)/(|]" # emoticons
color body brightcyan default "[;:][)(|]" # emoticons
color body brightcyan default "[*]?((N)?ACK|CU|LOL|SCNR|BRB|BTW|CWYL|\
|FWIW|vbg|GD&R|HTH|HTHBE|IMHO|IMNSHO|\
|IRL|RTFM|ROTFL|ROFL|YMMV)[*]?"
color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
## pgp
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.*"
# yes, an insance URL regex
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<>\"]"
# and a heavy handed email regex
#color body J_magent default "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])"
# Various smilies and the like
#color body brightwhite default "<[Gg]>" # <g>
#color body brightwhite default "<[Bb][Gg]>" # <bg>
#color body yellow default " [;:]-*[})>{(<|]" # :-) etc...
# *bold*
#color body blue default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
#mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
# _underline_
#color body blue default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
#mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
# /italic/ (Sometimes gets directory names)
#color body blue default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
#mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
# Border lines.
#color body blue default "( *[-+=#*~_]){6,}"
#folder-hook . "color status J_black J_status "
#folder-hook gmail/inbox "color status J_black yellow "
#folder-hook gmail/important "color status J_black yellow "

44
mutt/.config/mutt/crypto Normal file
View File

@@ -0,0 +1,44 @@
set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0xC9C40C31 -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import -v %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r"
# specify the uid to use when encrypting/signing
set pgp_sign_as=0x4AA1F538
# this set the number of seconds to keep in memory the passpharse used to encrypt/sign
# the more the less secure it will be
set pgp_timeout=1800
# it's a regexp used against the GPG output: if it matches some line of the output
# then mutt considers the message a good signed one (ignoring the GPG exit code)
set pgp_good_sign="^gpg: Good signature from"
# mutt uses by default PGP/GPG to sign/encrypt messages
unset smime_is_default
set pgp_auto_decode=yes
# automatically sign all outgoing messages
# set crypt_autosign
# sign only replies to signed messages
set crypt_replysign
# automatically encrypt outgoing messages
# set crypt_autoencrypt=yes
# encrypt only replies to signed messages
#set crypt_replyencrypt=yes
# encrypt and sign replies to encrypted messages
set crypt_replysignencrypted=yes
# automatically verify the sign of a message when opened
set crypt_verify_sig=yes
set pgp_use_gpg_agent = yes

View File

@@ -0,0 +1,34 @@
# scalene.net
folder-hook . 'set folder=~/mail/fm/ from="Jason Swank <jason@scalene.net>" record=+Sent.`date +%Y`.`date +%m` postponed=+Drafts hostname=scalene.net'
folder-hook . 'save-hook .* +Received.`date +%Y`.`date +%m`'
folder-hook . 'set smtp_url="smtps://jswank@fastmail.fm@smtp.fastmail.com:465/" smtp_pass="7smmrklxlq3f4euz"
#folder-hook . 'set sendmail = "$HOME/bin/mymail"'
folder-hook ~/mail/fm 'set folder=~/mail/fm/ from="Jason Swank <jason@scalene.net>" record=+Sent.`date +%Y`.`date +%m` postponed=+Drafts hostname=scalene.net'
folder-hook ~/mail/fm 'save-hook .* +Received.`date +%Y`.`date +%m`'
folder-hook ~/mail/fm 'set smtp_url="smtps://jswank@fastmail.fm@smtp.fastmail.com:465/" smtp_pass="7smmrklxlq3f4euz"
#folder-hook ~/mail/fm 'set sendmail = "$HOME/bin/mymail"'
# personal markup
color index brightwhite default "~C jason@scalene.net"
color index cyan default "~f mfranzini@fastmail.fm"
# cub scouts
color index yellow default "~f Hayden"
# theo's school
color index yellow default "~f hcollins912@yahoo.com"
color index yellow default "~f kelly.gunn@fayette.kyschools.us"
color index yellow default "~f james.beers@fayette.kyschools.us"
color index yellow default "~f jemsky@twc.com"
color index yellow default "~f carla.pleasant@fayette.kyschools.us"
color index yellow default "~f laurie.fields@fayette.kyschools.us"
# ollies's school
color index yellow default "~f info@providencemontessoriky.org"
# quakers
color index green default "~f rjmq47@twc.com"
color index green default "~f Douglas_Griggs@georgetowncollege.edu"
color index green default "~f gmkpah@aol.com"
color index green default "~f bneale@twc.com"
color index green default "~f mmhill1951@gmail.com"
color index black green "~C info@lexingtonfriends.org"
#color index cyan default "~f Blancet"

97
mutt/.config/mutt/muttrc Normal file
View File

@@ -0,0 +1,97 @@
#
# This file contains commands to change the keybindings in Mutt to be
# similar to those of PINE 3.95.
#
bind index v display-message
bind index p previous-undeleted
bind index ' ' next-page
bind index c mail
bind index g change-folder
bind index / search
bind index y print-message
bind index x sync-mailbox
bind index $ sort-mailbox
bind index a tag-prefix
#macro index G "!offlineimap -a fastmail-inbox,bantu-inbox,ako-inbox -u Quiet &<enter>"
# Not possible to simulate zoom-out...
macro index z ltagged\r
bind pager p previous-undeleted
bind pager ' ' next-page
bind pager g change-folder
bind pager c mail
bind pager w search
bind pager y print-message
bind pager \n noop # PINE prints "No default action for this menu."
bind pager k previous-line
bind pager j next-line
bind pager G bottom # just like vi and less
bind pager R group-reply
bind compose \cx send-message
macro index \cb |urlview\n
macro pager \cb |urlview\n
macro index,pager A |'abook --add-email'\n
macro editor \t \ct
set markers=no # fix multiline url wrapping
set query_command="abook --mutt-query '%s'"
set text_flowed=yes
set editor="nvim"
#set editor="vim -c \"setlocal tw=72 fo+=aw spell spelllang=en\"
#set save_address
set fast_reply
set hdr_format="%Z %3C %{%b %d} %-19.19L (%5c) %s"
set mbox_type=Maildir
set folder=~/mail/sonatype
set spoolfile=+INBOX
set hostname=sonatype.com
set use_domain
mailboxes ~/mail/sonatype/INBOX ~/mail/fm/INBOX
set mail_check=30
set timeout=15
set beep=yes
# sort mail in the order it is received
set sort=date-received
set delete=yes
set help = no
set move = no # don't ask me about mbox
set wait_key = no # don't ask me to press a key after shell commands
# these are the headers I want to see
ignore *
unignore from: date subject to cc reply-to x-mailer: user-agent:
unignore organization: organisation: x-mailer: x-newsreader: x-mailing-list:
hdr_order Date: From: To: Cc: Subject:
# html-ized mail
auto_view text/html
auto_view text/calendar
alternative_order text/enriched text/plain text/html text
source ~/.mutt/crypto
# colors
# source ~/.mutt/colorscheme
source ~/.mutt/fastmail
# colors are in the above- be sure that deleted message colors are correct
#color index black default ~= # dup-ed messages
#color index black default ~D # delete-ed messages
color index black default "~D" # deleted messages
set charset=utf-8

View File

@@ -0,0 +1,46 @@
# sonatype folder hooks
folder-hook ~/mail/sonatype 'unset record'
folder-hook ~/mail/sonatype 'set folder=~/mail/sonatype from="Jason Swank <jswank@sonatype.com>" postponed="+drafts" hostname=sonatype.com'
folder-hook ~/mail/sonatype 'set smtp_url="smtp://jswank@sonatype.com@smtp.gmail.com:587/" smtp_pass="etfsjjivqcrnliuu"'
#folder-hook ~/mail/sonatype 'set sendmail = "$HOME/bin/mymail"'
# Sonatype markup
#color index grey default "~C jswank@sonatype.com"
color index yellow default "~f .*@sonatype.com"
color index cyan default "~t jswank@sonatype.com ~f .*@sonatype.com"
color index magenta default "~f peckman"
color index magenta default "~f franzini"
color index magenta default "~f bmayhew"
color index magenta default "~f tlevett"
color index magenta default "~f ncook"
color index magenta default "~f nblair"
color index magenta default "~f jyoung"
color index magenta default "~f khayen"
color index magenta default "~f kwitten"
color index magenta default "~f mprescott"
color index magenta default "~f bentmann"
color index magenta default "~f Damian"
color index magenta default "~f sangles"
color index magenta default "~f ajbrown"
color index white cyan "~f stecker"
color index white cyan "~f watson"
color index white cyan "~f briganti"
color index white cyan "~f jorlina"
color index white cyan "~f yanko"
color index white cyan "~f sprochi"
color index white cyan "~f ethompson"
color index white cyan "~f amengual"
color index white cyan "~f mporter"
color index white cyan "~f sanderson"
color index white cyan "~f tneeriemer"
color index brightred default "~f brianf@sonatype.com"
color index brightred default "~f mhansen@sonatype.com"
color index brightred default "~f wayne@sonatype.com"
color index brightred default "~f dmiller@sonatype.com"
color index brightred default "~f jwhitehouse@sonatype.com"
color index brightred default "~f dwright@sonatype.com"
color index white red "~t alerts@sonatype.com"
color index white red "~f PagerDuty"
color index white red "~C security@sonatype.com"

3
mutt/.mailcap Normal file
View File

@@ -0,0 +1,3 @@
text/html; w3m -I %{charset} -T text/html; copiousoutput;
application/pdf; mupdf %s;
image/*; feh %s;