Loading .mutt/mailcap 0 → 100644 +24 −0 Original line number Diff line number Diff line # HTML text/html; ~/.mutt/scripts/X-run x-www-browser %s; test=~/.mutt/scripts/X-run test; text/html; lynx %s; needsterminal; text/html; lynx -dump -force_html %s; copiousoutput; # PDF application/pdf; ~/.mutt/scripts/X-run evince %s; test=~/.mutt/scripts/X-run test; needsterminal; # Office docs application/vnd.openxmlformats-officedocument.wordprocessingml.document; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/x-msexcel; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/ms-exc; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/excel; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/msexcel; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/vnd.ms-exc; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/vnd.ms-excel; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/msword; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; # Images image/jpeg; ~/.mutt/scripts/X-run eog %s; test=~/.mutt/scripts/X-run test; image/pjpeg; ~/.mutt/scripts/X-run eog %s; test=~/.mutt/scripts/X-run test; image/png; ~/.mutt/scripts/X-run eog %s; test=~/.mutt/scripts/X-run test; image/gif; ~/.mutt/scripts/X-run eog %s; test=~/.mutt/scripts/X-run test; .mutt/muttrc 0 → 100644 +20 −0 Original line number Diff line number Diff line # sorting set sort = reverse-threads; set sort_aux = last-date-received # hooks set display_filter = ~/.mutt/scripts/extract-aliases.sh; # aux files set mailcap_path = ~/.mutt/mailcap; set alias_file = ~/.mutt/aliases; # viewing options set text_flowed = yes; set wait_key = no auto_view text/html; alternative_order text/plain text/enriched text/html; set folder = ~/.mail; set delete = yes .mutt/scripts/X-run 0 → 100755 +51 −0 Original line number Diff line number Diff line #!/bin/bash # # Run an x-client program daemonized, using tmux-display-helper if necessary. # # Copies any files in /tmp to a new directory at /tmp/tmp.XXXX before # daemonizing so they will still be available to the daemon process. # # Usage: # X-run test # Check that an x-server is contactable. # # X-run <COMMAND> [<ARGS> ...] # Run COMMAND daemonized with DISPLAY set appropriately. # : ${DAEMON:=yes} : ${TEMPDIR:=/tmp/.xrun-${USER}} if [[ $1 = test ]]; then DAEMON=no set xset -q exec >/dev/null fi if [[ "$TMUX" ]]; then set ~/.shell/bin/tmux-display-helper run-command "$@" fi if [ x"$DAEMON" = xyes ]; then mkdir -p "$TEMPDIR" # clean out old temp files find "$TEMPDIR" -ctime +1 -delete # copy files in /tmp to TEMPDIR declare -a args=( "$@" ) set -- for arg in "${args[@]}"; do if [[ $arg =~ ^/tmp/ ]]; then tmp="$TEMPDIR"/`basename "$arg"` test -e "$arg" && cp "$arg" $tmp set "$@" "$tmp" else set "$@" "$arg" fi done ("$@" >/dev/null 2>&1 &) else exec "$@" fi .mutt/scripts/extract-aliases.sh 0 → 100755 +6 −0 Original line number Diff line number Diff line #!/bin/sh if ! type python3 >/dev/null 2>&1; then cat else python3 `dirname $0`/extract-aliases.py ~/.mutt/aliases fi Loading
.mutt/mailcap 0 → 100644 +24 −0 Original line number Diff line number Diff line # HTML text/html; ~/.mutt/scripts/X-run x-www-browser %s; test=~/.mutt/scripts/X-run test; text/html; lynx %s; needsterminal; text/html; lynx -dump -force_html %s; copiousoutput; # PDF application/pdf; ~/.mutt/scripts/X-run evince %s; test=~/.mutt/scripts/X-run test; needsterminal; # Office docs application/vnd.openxmlformats-officedocument.wordprocessingml.document; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/x-msexcel; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/ms-exc; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/excel; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/msexcel; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/vnd.ms-exc; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/vnd.ms-excel; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; application/msword; ~/.mutt/scripts/X-run soffice --view %s; test=~/.mutt/scripts/X-run test; # Images image/jpeg; ~/.mutt/scripts/X-run eog %s; test=~/.mutt/scripts/X-run test; image/pjpeg; ~/.mutt/scripts/X-run eog %s; test=~/.mutt/scripts/X-run test; image/png; ~/.mutt/scripts/X-run eog %s; test=~/.mutt/scripts/X-run test; image/gif; ~/.mutt/scripts/X-run eog %s; test=~/.mutt/scripts/X-run test;
.mutt/muttrc 0 → 100644 +20 −0 Original line number Diff line number Diff line # sorting set sort = reverse-threads; set sort_aux = last-date-received # hooks set display_filter = ~/.mutt/scripts/extract-aliases.sh; # aux files set mailcap_path = ~/.mutt/mailcap; set alias_file = ~/.mutt/aliases; # viewing options set text_flowed = yes; set wait_key = no auto_view text/html; alternative_order text/plain text/enriched text/html; set folder = ~/.mail; set delete = yes
.mutt/scripts/X-run 0 → 100755 +51 −0 Original line number Diff line number Diff line #!/bin/bash # # Run an x-client program daemonized, using tmux-display-helper if necessary. # # Copies any files in /tmp to a new directory at /tmp/tmp.XXXX before # daemonizing so they will still be available to the daemon process. # # Usage: # X-run test # Check that an x-server is contactable. # # X-run <COMMAND> [<ARGS> ...] # Run COMMAND daemonized with DISPLAY set appropriately. # : ${DAEMON:=yes} : ${TEMPDIR:=/tmp/.xrun-${USER}} if [[ $1 = test ]]; then DAEMON=no set xset -q exec >/dev/null fi if [[ "$TMUX" ]]; then set ~/.shell/bin/tmux-display-helper run-command "$@" fi if [ x"$DAEMON" = xyes ]; then mkdir -p "$TEMPDIR" # clean out old temp files find "$TEMPDIR" -ctime +1 -delete # copy files in /tmp to TEMPDIR declare -a args=( "$@" ) set -- for arg in "${args[@]}"; do if [[ $arg =~ ^/tmp/ ]]; then tmp="$TEMPDIR"/`basename "$arg"` test -e "$arg" && cp "$arg" $tmp set "$@" "$tmp" else set "$@" "$arg" fi done ("$@" >/dev/null 2>&1 &) else exec "$@" fi
.mutt/scripts/extract-aliases.sh 0 → 100755 +6 −0 Original line number Diff line number Diff line #!/bin/sh if ! type python3 >/dev/null 2>&1; then cat else python3 `dirname $0`/extract-aliases.py ~/.mutt/aliases fi