From e146e947c52ac4adbe426b3f893faff1e46ed5f8 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 19 Apr 2016 15:24:25 +0100 Subject: Use GNU stow for dotfiles management --- mutt/.mutt/.gitignore | 4 ++ mutt/.mutt/alias | 1 + mutt/.mutt/colors | 23 ++++++++++++ mutt/.mutt/crypto | 85 ++++++++++++++++++++++++++++++++++++++++++ mutt/.mutt/id_personal | 11 ++++++ mutt/.mutt/id_work | 11 ++++++ mutt/.mutt/mailboxes | 1 + mutt/.mutt/mailcap | 5 +++ mutt/.mutt/muttrc | 94 +++++++++++++++++++++++++++++++++++++++++++++++ mutt/.mutt/signature | 1 + mutt/attachments/.gitkeep | 0 mutt/cache/.gitkeep | 0 mutt/colors | 23 ------------ mutt/crypto | 85 ------------------------------------------ mutt/id_personal | 11 ------ mutt/id_work | 11 ------ mutt/mailboxes | 1 - mutt/mailcap | 5 --- mutt/muttrc | 94 ----------------------------------------------- mutt/signature | 1 - 20 files changed, 236 insertions(+), 231 deletions(-) create mode 100644 mutt/.mutt/.gitignore create mode 120000 mutt/.mutt/alias create mode 100644 mutt/.mutt/colors create mode 100644 mutt/.mutt/crypto create mode 100644 mutt/.mutt/id_personal create mode 100644 mutt/.mutt/id_work create mode 100644 mutt/.mutt/mailboxes create mode 100644 mutt/.mutt/mailcap create mode 100644 mutt/.mutt/muttrc create mode 100644 mutt/.mutt/signature delete mode 100644 mutt/attachments/.gitkeep delete mode 100644 mutt/cache/.gitkeep delete mode 100644 mutt/colors delete mode 100644 mutt/crypto delete mode 100644 mutt/id_personal delete mode 100644 mutt/id_work delete mode 100644 mutt/mailboxes delete mode 100644 mutt/mailcap delete mode 100644 mutt/muttrc delete mode 100644 mutt/signature (limited to 'mutt') diff --git a/mutt/.mutt/.gitignore b/mutt/.mutt/.gitignore new file mode 100644 index 0000000..c3f6190 --- /dev/null +++ b/mutt/.mutt/.gitignore @@ -0,0 +1,4 @@ +attachments/* +cache/* +solarized +temp/* diff --git a/mutt/.mutt/alias b/mutt/.mutt/alias new file mode 120000 index 0000000..1cc59a8 --- /dev/null +++ b/mutt/.mutt/alias @@ -0,0 +1 @@ +../../../personal/mutt/alias \ No newline at end of file diff --git a/mutt/.mutt/colors b/mutt/.mutt/colors new file mode 100644 index 0000000..39b16b2 --- /dev/null +++ b/mutt/.mutt/colors @@ -0,0 +1,23 @@ +# -*-muttrc-*- + +# Palette for use with the Linux console. Black background. + +color hdrdefault blue black +color quoted blue black +color signature blue black +color attachment red black +color prompt brightmagenta black +color message brightred black +color error brightred black +color indicator black red +color status brightgreen blue +color tree white black +color normal white black +color markers red black +color search white black +color tilde brightmagenta black +color index blue black ~F +color index red black "~N|~O" + +# color body brightwhite black '\*+[^*]+\*+' +# color body brightwhite black '_+[^_]+_+' diff --git a/mutt/.mutt/crypto b/mutt/.mutt/crypto new file mode 100644 index 0000000..393820b --- /dev/null +++ b/mutt/.mutt/crypto @@ -0,0 +1,85 @@ +# -*-muttrc-*- +# +# Command formats for gpg. +# +# This version uses gpg-2comp from +# http://70t.de/download/gpg-2comp.tar.gz +# +# $Id$ +# +# %p The empty string when no passphrase is needed, +# the string "PGPPASSFD=0" if one is needed. +# +# This is mostly used in conditional % sequences. +# +# %f Most PGP commands operate on a single file or a file +# containing a message. %f expands to this file's name. +# +# %s When verifying signatures, there is another temporary file +# containing the detached signature. %s expands to this +# file's name. +# +# %a In "signing" contexts, this expands to the value of the +# configuration variable $pgp_sign_as. You probably need to +# use this within a conditional % sequence. +# +# %r In many contexts, mutt passes key IDs to pgp. %r expands to +# a list of key IDs. + +# Note that we explicitly set the comment armor header since GnuPG, when used +# in some localiaztion environments, generates 8bit data in that header, thereby +# breaking PGP/MIME. + +# decode application/pgp +set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" + +# verify a pgp/mime signature +set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f" + +# decrypt a pgp/mime attachment +set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" + +# create a pgp/mime signed attachment +# set pgp_sign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" +set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" + +# create a application/pgp signed (old-style) message +# set pgp_clearsign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" +set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" + +# create a pgp/mime encrypted attachment +# set pgp_encrypt_only_command="pgpewrap gpg-2comp -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" +set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" + +# create a pgp/mime encrypted and signed attachment +# set pgp_encrypt_sign_command="pgpewrap gpg-2comp %?p?--passphrase-fd 0? -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" +set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" + +# import a key into the public key ring +set pgp_import_command="gpg --no-verbose --import %f" + +# export a key from the public key ring +set pgp_export_command="gpg --no-verbose --export --armor %r" + +# verify a key +set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r" + +# read in the public key ring +set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --list-keys %r" + +# read in the secret key ring +set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r" + +# fetch keys +# set pgp_getkeys_command="pkspxycwrap %r" + +# pattern for good signature - may need to be adapted to locale! + +# set pgp_good_sign="^gpgv?: Good signature from " + +# OK, here's a version which uses gnupg's message catalog: +# set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`" + +# This version uses --status-fd messages +set pgp_good_sign="^\\[GNUPG:\\] GOODSIG" + diff --git a/mutt/.mutt/id_personal b/mutt/.mutt/id_personal new file mode 100644 index 0000000..96892b3 --- /dev/null +++ b/mutt/.mutt/id_personal @@ -0,0 +1,11 @@ +set from = "mail@urbainvaes.com" +set sendmail="/usr/bin/msmtp -a personal" + +set spoolfile = "+Personal/Personal" +set record = "+Personal/Personal.sent" +set postponed = "+Personal/Personal.drafts" +set trash = "+Personal/Personal.bin" + +macro index,pager gs " $record" +macro index,pager gd " $postponed" +macro index,pager gb " $trash" diff --git a/mutt/.mutt/id_work b/mutt/.mutt/id_work new file mode 100644 index 0000000..238cfcb --- /dev/null +++ b/mutt/.mutt/id_work @@ -0,0 +1,11 @@ +set from = "u.vaes13@imperial.ac.uk" +set sendmail="/usr/bin/msmtp -a imperial" + +set spoolfile = "+Work/Work" +set record = "+Work/Work.sent" +set postponed = "+Work/Work.drafts" +set trash = "+Work/Work.bin" + +macro index,pager gs " $record" +macro index,pager gd " $postponed" +macro index,pager gb " $trash" diff --git a/mutt/.mutt/mailboxes b/mutt/.mutt/mailboxes new file mode 100644 index 0000000..a4be3a9 --- /dev/null +++ b/mutt/.mutt/mailboxes @@ -0,0 +1 @@ +mailboxes "+Work/Work" "+Work/Work.bin" "+Work/Work.drafts" "+Work/Work.sent" "+Personal/Personal" "+Personal/Personal.bin" "+Personal/Personal.drafts" "+Personal/Personal.sent" diff --git a/mutt/.mutt/mailcap b/mutt/.mutt/mailcap new file mode 100644 index 0000000..dcab31d --- /dev/null +++ b/mutt/.mutt/mailcap @@ -0,0 +1,5 @@ +text/html; mv %s %s.html && qutebrowser %s.html >/dev/null 2>/dev/null; needsterminal; +text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput +text/plain; more %s; +image/*; feh %s +application/pdf; zathura %s diff --git a/mutt/.mutt/muttrc b/mutt/.mutt/muttrc new file mode 100644 index 0000000..2264a95 --- /dev/null +++ b/mutt/.mutt/muttrc @@ -0,0 +1,94 @@ +# Folders +set folder = ~/.mail +set alias_file = ~/.mutt/alias +set header_cache = ~/.mutt/cache/headers +set message_cachedir = ~/.mutt/cache/bodies +set certificate_file = ~/.mutt/certificates +set signature = ~/.mutt/signature +set mailcap_path = ~/.mutt/mailcap +set tmpdir = ~/.mutt/temp + +# Source crypto, aliases, mailboxes +source ~/.mutt/colors +source ~/.mutt/crypto +source ~/.mutt/alias +source ~/.mutt/mailboxes +source ~/.mutt/id_work + +# General information +set realname = "Urbain Vaes" +set reverse_alias +set sort = reverse-date +set weed +set fcc_clear +unset markers +set sleep_time = 0 + +# Encryption +set crypt_autosign = no +set crypt_replyencrypt = yes +set pgp_auto_decode = yes +set pgp_autosign = no +set pgp_sign_as = 716064C0 +set pgp_use_gpg_agent = yes +set pgp_timeout = 3600 + +# Sidebar +set sidebar_width=26 +set sidebar_visible = yes +set sidebar_delim='|' +set sidebar_shortpath = yes +set sidebar_folderindent = yes +set sidebar_format = "%B%* %?F?[%F]?%?N?(%N)?%4S" +bind index,pager \Cn sidebar-next +bind index,pager \Cp sidebar-prev +bind index,pager O sidebar-open + +# Prompts +set delete = yes +set quit = yes + +# Pager +set pager_stop +set pager_index_lines = 10 + +# HTML messages +auto_view text/html +alternative_order text/plain text/enriched text/html + +# Editor +set editor="$EDITOR" +set include=yes + +# Macros +macro index,pager gp " +Personal/Personal" +macro index,pager gw " +Work/Work" + +# Key bindings +bind attach view-mailcap + +bind index,pager \Cf next-page +bind index,pager \Cb previous-page +bind index,pager \Cu next-unread-mailbox + +bind index gg first-entry +bind index G last-entry +bind index i flag-message + +bind pager \Ce next-line +bind pager \Cy previous-line +bind pager j next-entry +bind pager k previous-entry +bind pager R group-reply + +# Hooks +folder-hook 'Work*' 'source ~/.mutt/id_work' +folder-hook 'Personal*' 'source ~/.mutt/id_personal' + +# Source mutt solarized +`[ "$COLORSCHEME" = "light" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-light-16.muttrc || echo set` +`[ "$COLORSCHEME" = "dark" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-dark-16.muttrc || echo set` + +# Identities +set reverse_name +alternates "*@urbainvaes.com" diff --git a/mutt/.mutt/signature b/mutt/.mutt/signature new file mode 100644 index 0000000..eb52bfb --- /dev/null +++ b/mutt/.mutt/signature @@ -0,0 +1 @@ +Urbain Vaes diff --git a/mutt/attachments/.gitkeep b/mutt/attachments/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/mutt/cache/.gitkeep b/mutt/cache/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/mutt/colors b/mutt/colors deleted file mode 100644 index 39b16b2..0000000 --- a/mutt/colors +++ /dev/null @@ -1,23 +0,0 @@ -# -*-muttrc-*- - -# Palette for use with the Linux console. Black background. - -color hdrdefault blue black -color quoted blue black -color signature blue black -color attachment red black -color prompt brightmagenta black -color message brightred black -color error brightred black -color indicator black red -color status brightgreen blue -color tree white black -color normal white black -color markers red black -color search white black -color tilde brightmagenta black -color index blue black ~F -color index red black "~N|~O" - -# color body brightwhite black '\*+[^*]+\*+' -# color body brightwhite black '_+[^_]+_+' diff --git a/mutt/crypto b/mutt/crypto deleted file mode 100644 index 393820b..0000000 --- a/mutt/crypto +++ /dev/null @@ -1,85 +0,0 @@ -# -*-muttrc-*- -# -# Command formats for gpg. -# -# This version uses gpg-2comp from -# http://70t.de/download/gpg-2comp.tar.gz -# -# $Id$ -# -# %p The empty string when no passphrase is needed, -# the string "PGPPASSFD=0" if one is needed. -# -# This is mostly used in conditional % sequences. -# -# %f Most PGP commands operate on a single file or a file -# containing a message. %f expands to this file's name. -# -# %s When verifying signatures, there is another temporary file -# containing the detached signature. %s expands to this -# file's name. -# -# %a In "signing" contexts, this expands to the value of the -# configuration variable $pgp_sign_as. You probably need to -# use this within a conditional % sequence. -# -# %r In many contexts, mutt passes key IDs to pgp. %r expands to -# a list of key IDs. - -# Note that we explicitly set the comment armor header since GnuPG, when used -# in some localiaztion environments, generates 8bit data in that header, thereby -# breaking PGP/MIME. - -# decode application/pgp -set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" - -# verify a pgp/mime signature -set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f" - -# decrypt a pgp/mime attachment -set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" - -# create a pgp/mime signed attachment -# set pgp_sign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" -set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" - -# create a application/pgp signed (old-style) message -# set pgp_clearsign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" -set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" - -# create a pgp/mime encrypted attachment -# set pgp_encrypt_only_command="pgpewrap gpg-2comp -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" -set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" - -# create a pgp/mime encrypted and signed attachment -# set pgp_encrypt_sign_command="pgpewrap gpg-2comp %?p?--passphrase-fd 0? -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" -set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" - -# import a key into the public key ring -set pgp_import_command="gpg --no-verbose --import %f" - -# export a key from the public key ring -set pgp_export_command="gpg --no-verbose --export --armor %r" - -# verify a key -set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r" - -# read in the public key ring -set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --list-keys %r" - -# read in the secret key ring -set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r" - -# fetch keys -# set pgp_getkeys_command="pkspxycwrap %r" - -# pattern for good signature - may need to be adapted to locale! - -# set pgp_good_sign="^gpgv?: Good signature from " - -# OK, here's a version which uses gnupg's message catalog: -# set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`" - -# This version uses --status-fd messages -set pgp_good_sign="^\\[GNUPG:\\] GOODSIG" - diff --git a/mutt/id_personal b/mutt/id_personal deleted file mode 100644 index 96892b3..0000000 --- a/mutt/id_personal +++ /dev/null @@ -1,11 +0,0 @@ -set from = "mail@urbainvaes.com" -set sendmail="/usr/bin/msmtp -a personal" - -set spoolfile = "+Personal/Personal" -set record = "+Personal/Personal.sent" -set postponed = "+Personal/Personal.drafts" -set trash = "+Personal/Personal.bin" - -macro index,pager gs " $record" -macro index,pager gd " $postponed" -macro index,pager gb " $trash" diff --git a/mutt/id_work b/mutt/id_work deleted file mode 100644 index 238cfcb..0000000 --- a/mutt/id_work +++ /dev/null @@ -1,11 +0,0 @@ -set from = "u.vaes13@imperial.ac.uk" -set sendmail="/usr/bin/msmtp -a imperial" - -set spoolfile = "+Work/Work" -set record = "+Work/Work.sent" -set postponed = "+Work/Work.drafts" -set trash = "+Work/Work.bin" - -macro index,pager gs " $record" -macro index,pager gd " $postponed" -macro index,pager gb " $trash" diff --git a/mutt/mailboxes b/mutt/mailboxes deleted file mode 100644 index a4be3a9..0000000 --- a/mutt/mailboxes +++ /dev/null @@ -1 +0,0 @@ -mailboxes "+Work/Work" "+Work/Work.bin" "+Work/Work.drafts" "+Work/Work.sent" "+Personal/Personal" "+Personal/Personal.bin" "+Personal/Personal.drafts" "+Personal/Personal.sent" diff --git a/mutt/mailcap b/mutt/mailcap deleted file mode 100644 index dcab31d..0000000 --- a/mutt/mailcap +++ /dev/null @@ -1,5 +0,0 @@ -text/html; mv %s %s.html && qutebrowser %s.html >/dev/null 2>/dev/null; needsterminal; -text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput -text/plain; more %s; -image/*; feh %s -application/pdf; zathura %s diff --git a/mutt/muttrc b/mutt/muttrc deleted file mode 100644 index 2264a95..0000000 --- a/mutt/muttrc +++ /dev/null @@ -1,94 +0,0 @@ -# Folders -set folder = ~/.mail -set alias_file = ~/.mutt/alias -set header_cache = ~/.mutt/cache/headers -set message_cachedir = ~/.mutt/cache/bodies -set certificate_file = ~/.mutt/certificates -set signature = ~/.mutt/signature -set mailcap_path = ~/.mutt/mailcap -set tmpdir = ~/.mutt/temp - -# Source crypto, aliases, mailboxes -source ~/.mutt/colors -source ~/.mutt/crypto -source ~/.mutt/alias -source ~/.mutt/mailboxes -source ~/.mutt/id_work - -# General information -set realname = "Urbain Vaes" -set reverse_alias -set sort = reverse-date -set weed -set fcc_clear -unset markers -set sleep_time = 0 - -# Encryption -set crypt_autosign = no -set crypt_replyencrypt = yes -set pgp_auto_decode = yes -set pgp_autosign = no -set pgp_sign_as = 716064C0 -set pgp_use_gpg_agent = yes -set pgp_timeout = 3600 - -# Sidebar -set sidebar_width=26 -set sidebar_visible = yes -set sidebar_delim='|' -set sidebar_shortpath = yes -set sidebar_folderindent = yes -set sidebar_format = "%B%* %?F?[%F]?%?N?(%N)?%4S" -bind index,pager \Cn sidebar-next -bind index,pager \Cp sidebar-prev -bind index,pager O sidebar-open - -# Prompts -set delete = yes -set quit = yes - -# Pager -set pager_stop -set pager_index_lines = 10 - -# HTML messages -auto_view text/html -alternative_order text/plain text/enriched text/html - -# Editor -set editor="$EDITOR" -set include=yes - -# Macros -macro index,pager gp " +Personal/Personal" -macro index,pager gw " +Work/Work" - -# Key bindings -bind attach view-mailcap - -bind index,pager \Cf next-page -bind index,pager \Cb previous-page -bind index,pager \Cu next-unread-mailbox - -bind index gg first-entry -bind index G last-entry -bind index i flag-message - -bind pager \Ce next-line -bind pager \Cy previous-line -bind pager j next-entry -bind pager k previous-entry -bind pager R group-reply - -# Hooks -folder-hook 'Work*' 'source ~/.mutt/id_work' -folder-hook 'Personal*' 'source ~/.mutt/id_personal' - -# Source mutt solarized -`[ "$COLORSCHEME" = "light" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-light-16.muttrc || echo set` -`[ "$COLORSCHEME" = "dark" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-dark-16.muttrc || echo set` - -# Identities -set reverse_name -alternates "*@urbainvaes.com" diff --git a/mutt/signature b/mutt/signature deleted file mode 100644 index eb52bfb..0000000 --- a/mutt/signature +++ /dev/null @@ -1 +0,0 @@ -Urbain Vaes -- cgit v1.2.3