Llego el correo
Finalmente tengo un setup de neomutt que me gusta mucho y funciona totalmente como debiera, aguante eso. Tal vez cambie algun keybind en el futuro, pero por ahora queda asi. La otra muy interesante y copada adicion es el script que arme para streamear a twitch sin obs, y un asistente que hice para poder tener texto personalizable. Seguramente se vengan mas agregados y/o modificaciones, pero por ahora anda barbaro
This commit is contained in:
parent
2eb52c65dc
commit
e2585e2734
|
@ -0,0 +1,11 @@
|
|||
text/plain; less -R %s
|
||||
# text/html; lynx -dump -width ${COLUMNS:-80} %s ; copiousoutput
|
||||
text/html; elinks -no-connect -dump -dump-charset UTF-8 -dump-width 140 -default-mime-type text/html %s; needsterminal; copiousoutput;
|
||||
text/x-diff; colordiff; copiousoutput
|
||||
text/x-patch; colordiff; copiousoutput
|
||||
image/*; openfile %s ;
|
||||
video/*; setsid mpv --quiet %s &; copiousoutput
|
||||
audio/*; mpv %s ;
|
||||
application/pdf; openfile %s ;
|
||||
application/pgp-encrypted; gpg -d '%s'; copiousoutput;
|
||||
application/pgp-keys; gpg --import '%s'; copiousoutput;
|
|
@ -0,0 +1,76 @@
|
|||
# vim: filetype=neomuttrc
|
||||
source neomuttrc.d/gpg.rc
|
||||
source neomuttrc.d/bindings.neomuttrc
|
||||
source neomuttrc.d/colors.neomuttrc
|
||||
source neomuttrc.d/powerline.neomuttrc
|
||||
|
||||
unset help
|
||||
set mailcap_path = ~/.config/neomutt/mailcap
|
||||
set sort = threads
|
||||
set sort_aux = reverse-last-date-received
|
||||
set smtp_authenticators = 'gssapi:login'
|
||||
set attribution = "En %{!%F a las %R}, %n escribió:"
|
||||
set date_format = "%F %R"
|
||||
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
||||
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
|
||||
set forward_format = "Fwd: %s" # Format of subject when forwarding
|
||||
set sleep_time = 0 # Pause 0 seconds for informational messages
|
||||
set mail_check = 60 # To avoid lags using IMAP
|
||||
set wrap = 100
|
||||
set rfc2047_parameters = yes
|
||||
set smart_wrap = yes
|
||||
set reverse_realname = yes # Use any real name provided when replying
|
||||
set mime_forward = yes # Attachments are forwarded with mail
|
||||
set auto_tag = yes # Automatically apply actions to all tagged messages
|
||||
set delete = yes # Don't ask, do.
|
||||
set sidebar_visible = no # Not needed
|
||||
set markers = no # Disables the `+` displayed at line wraps
|
||||
set mark_old = no # Unread mail stay unread until read
|
||||
set wait_key = no # mutt won't ask "press key to continue"
|
||||
set fast_reply # skip to compose when replying
|
||||
set fcc_attach # save attachments with the body
|
||||
set forward_quote # include message in forwards
|
||||
set reverse_name # reply as whomever it was to
|
||||
set include # include message in replies
|
||||
set menu_scroll # scroll in menus
|
||||
set edit_headers
|
||||
set sort_re
|
||||
set arrow_cursor
|
||||
|
||||
set pager_index_lines = 13
|
||||
set pager_context = 3
|
||||
set pager_stop
|
||||
|
||||
alternative_order text/calendar text/plain text/enriched text/html
|
||||
unauto_view *
|
||||
auto_view text/calendar
|
||||
auto_view text/html
|
||||
auto_view text/x-diff
|
||||
auto_view text/x-patch
|
||||
auto_view application/ics
|
||||
auto_view application/pgp-encrypted
|
||||
|
||||
# neomutt doesn't have this yet :(
|
||||
# set editor = "carta.sh `echo $EDITOR`"
|
||||
# set background_edit = `[ -n "$TMUX" ] && echo 'yes' || echo 'no'`
|
||||
|
||||
# Header Options
|
||||
ignore *
|
||||
unhdr_order *
|
||||
unignore from subject to cc date x-mailer x-url user-agent
|
||||
hdr_order date from to cc subject
|
||||
|
||||
index-format-hook date "~d<1d" "Today"
|
||||
index-format-hook date "~d<2d" "Yesterday"
|
||||
index-format-hook date "~d<1w" "%[%A]"
|
||||
index-format-hook date "~d<1y" "%[%b %d]"
|
||||
index-format-hook date "~A" "%[%b %y]"
|
||||
|
||||
# Warns if replying to multiple recipt email
|
||||
reply-hook "~C 2" "set sleep_time=10\;echo 'Warning, original message has multiple recipients!'\;set sleep_time=1"
|
||||
|
||||
# Hide autoview messages and format attachments nicely
|
||||
# https://forums.gentoo.org/viewtopic-t-148115-start-0.html
|
||||
set display_filter="sed -e '/\\[-- Type: text.* --\\]/d' | sed -e '/\\[-- Autoview.* --\\]/d' | sed -e '/\\[-- Type.* --\\]/d' | sed -e '/\\[-- .*unsupported.* --\\]/d' | sed -e '/\\[-- Attachment #[0-9] --\\]/d' | sed -e 's/Attachment #[0-9]: //g' | sed '/./,/^$/!d'"
|
||||
|
||||
source accounts/1-alex.muttrc
|
|
@ -0,0 +1,58 @@
|
|||
# vim: filetype=neomuttrc
|
||||
bind index \Cf noop
|
||||
bind index,pager i noop
|
||||
bind index,pager g noop
|
||||
|
||||
# General rebindings
|
||||
bind index j next-entry
|
||||
bind index k previous-entry
|
||||
bind index G last-entry
|
||||
bind index U undelete-message
|
||||
bind index L limit
|
||||
bind index h noop
|
||||
bind index l display-message
|
||||
bind index gg first-entry
|
||||
bind index \031 previous-undeleted # Mouse wheel
|
||||
bind index \005 next-undeleted # Mouse wheel
|
||||
|
||||
bind pager j next-line
|
||||
bind pager k previous-line
|
||||
bind pager l view-attachments
|
||||
bind pager \031 previous-line # Mouse wheel
|
||||
bind pager \005 next-line # Mouse wheel
|
||||
|
||||
bind attach <return> view-mailcap
|
||||
bind attach l view-mailcap
|
||||
|
||||
bind editor <space> noop
|
||||
bind editor <Tab> complete-query
|
||||
|
||||
bind browser l select-entry
|
||||
|
||||
bind index,pager D delete-message
|
||||
bind index,pager H view-raw-message
|
||||
bind index,query <space> tag-entry
|
||||
bind index,pager S sync-mailbox
|
||||
bind index,pager R group-reply
|
||||
|
||||
bind pager,browser gg top-page
|
||||
bind pager,browser G bottom-page
|
||||
|
||||
bind pager,attach h exit
|
||||
|
||||
bind index,pager,browser d half-down
|
||||
bind index,pager,browser u half-up
|
||||
|
||||
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
|
||||
macro index O "<shell-escape>mbsync -c ~/.config/isync/mbsyncrc -a<enter>" "run mbsync to sync all mail"
|
||||
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'Enter a search term to find with notmuch: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern"
|
||||
macro index A "<limit>all\n" "show all messages (undo limit)"
|
||||
|
||||
macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
|
||||
|
||||
macro index,pager <f1> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/1-alex.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to vidaar@gmail.com"
|
||||
macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/2-alejo.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alejo.jardon@gmail.com"
|
||||
macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/3-git.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to adeadgit@gmail.com"
|
||||
macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/4-iamz@airmail.cc.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to iamz@airmail.cc"
|
||||
macro index,pager <f5> '<sync-mailbox><enter-command>source /home/deadguy/.config/neomutt/accounts/6-dgy@fuckup.club.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to dgy@fuckup.club" # mw-autogenerated
|
||||
macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"
|
|
@ -0,0 +1,97 @@
|
|||
# Default index colors:
|
||||
color index default default '.*'
|
||||
color index_author green default '.*'
|
||||
color index_number blue default
|
||||
color index_subject cyan default '.*'
|
||||
|
||||
# New mail is boldened:
|
||||
color index brightyellow color233 "~N"
|
||||
color index_author brightred color233 "~N"
|
||||
color index_subject brightcyan color233 "~N"
|
||||
|
||||
# Tagged mail is highlighted:
|
||||
color index brightyellow blue "~T"
|
||||
color index_author brightred blue "~T"
|
||||
color index_subject brightcyan blue "~T"
|
||||
|
||||
# Other colors and aesthetic settings:
|
||||
mono bold bold
|
||||
mono underline underline
|
||||
mono indicator reverse
|
||||
mono error bold
|
||||
color indicator white default
|
||||
color sidebar_highlight red default
|
||||
color sidebar_divider brightblack color233
|
||||
color sidebar_flagged red color233
|
||||
color sidebar_new green color233
|
||||
color error red default
|
||||
color tilde color233 default
|
||||
color message cyan default
|
||||
color markers red white
|
||||
color attachment white default
|
||||
color search brightmagenta default
|
||||
color status brightyellow color233
|
||||
color hdrdefault brightgreen default
|
||||
color quoted green default
|
||||
color quoted1 blue default
|
||||
color quoted2 cyan default
|
||||
color quoted3 yellow default
|
||||
color quoted4 red default
|
||||
color quoted5 brightred default
|
||||
color signature brightgreen default
|
||||
color bold color233 default
|
||||
color underline color233 default
|
||||
color normal default default
|
||||
|
||||
# Regex highlighting:
|
||||
color header blue default ".*"
|
||||
color header brightmagenta default "^(From)"
|
||||
color header brightcyan default "^(Subject)"
|
||||
color header brightwhite default "^(CC|BCC)"
|
||||
color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
|
||||
color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
|
||||
color body green default "\`[^\`]*\`" # Green text between ` and `
|
||||
color body brightblue default "^# \.*" # Headings as bold blue
|
||||
color body brightcyan default "^## \.*" # Subheadings as bold cyan
|
||||
color body brightgreen default "^### \.*" # Subsubheadings as bold green
|
||||
color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
|
||||
color body brightcyan default "[;:][-o][)/(|]" # emoticons
|
||||
color body brightcyan default "[;:][)(|]" # emoticons
|
||||
color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
|
||||
color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
|
||||
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.*"
|
||||
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<>\"]"
|
||||
color body color143 default "[*]?((N)?ACK|CU|LOL|SCNR|BRB|BTW|CWYL|\
|
||||
|FWIW|vbg|GD&R|HTH|HTHBE|IMHO|IMNSHO|\
|
||||
|IRL|RTFM|ROTFL|ROFL|YMMV)[*]?"
|
||||
|
||||
# and a heavy handed email regex
|
||||
color body color167 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 default default "<[Gg]>" # <g>
|
||||
color body default default "<[Bb][Gg]>" # <bg>
|
||||
color body color222 default " [;:]-*[})>{(<|]" # :-) etc...
|
||||
|
||||
# *bold*
|
||||
color body color109 default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
|
||||
mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
|
||||
|
||||
# _underline_
|
||||
color body color109 default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
|
||||
mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
|
||||
|
||||
# /italic/ (Sometimes gets directory names)
|
||||
color body color109 default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
|
||||
mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
|
||||
|
||||
# Border lines.
|
||||
color body color109 default "( *[-+=#*~_]){6,}"
|
||||
|
||||
# vim: filetype=muttrc
|
|
@ -0,0 +1,45 @@
|
|||
# vim: filetype=neomuttrc
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Powerline / nerdfont
|
||||
# This is a bit "hackish" due to neomutt limitations
|
||||
#
|
||||
# Author: Sheoak <contact [at] sheoak.fr>
|
||||
# ----------------------------------------------------------------------------
|
||||
set index_format=" %zs %zc %zt %{!%F %R} %-28.28L %?M?(%1M)& ? %?X?& ? %s"
|
||||
set pager_format="\n %n %T %s%* %{!%F · %R} %?X? %X?%P \n \n"
|
||||
set status_format = " %f %?r? %m ?%?n? %n ?%?d? %d ?%?t? %t ?%?F? %F ?%?p? %p? \n \n"
|
||||
set vfolder_format = " %N %?n?%3n& ? %8m · %f"
|
||||
set attach_format = "%u%D %T%-75.75d %?T?%& ? %5s · %m/%M"
|
||||
|
||||
# no addressed to me, to me, group, cc, sent by me, mailing list
|
||||
set to_chars=""
|
||||
# unchanged mailbox, changed, read only, attach mode
|
||||
set status_chars = " "
|
||||
ifdef crypt_chars set crypt_chars = " "
|
||||
set flag_chars = " "
|
||||
|
||||
set hidden_tags = "unread,draft,flagged,passed,replied,attachment,signed,encrypted"
|
||||
tag-transforms "replied" "↻ " \
|
||||
"encrytpted" "" \
|
||||
"signed" "" \
|
||||
"attachment" "" \
|
||||
|
||||
# The formats must start with 'G' and the entire sequence is case sensitive.
|
||||
tag-formats "replied" "GR" \
|
||||
"encrypted" "GE" \
|
||||
"signed" "GS" \
|
||||
"attachment" "GA" \
|
||||
|
||||
color status white default
|
||||
# powerline status bar hack
|
||||
color status color12 default '([a-zA-Z0-9])(\s)'
|
||||
color status color12 default '(\s)([a-zA-Z0-9])'
|
||||
color status color12 default '( )'
|
||||
color status color12 default '(\S)'
|
||||
color status color0 default '(|)'
|
||||
color status green default ''
|
||||
color status white default ''
|
||||
color status yellow default ''
|
||||
color status red default ''
|
||||
color tree color15 default
|
|
@ -0,0 +1,53 @@
|
|||
#!/bin/sh
|
||||
|
||||
# OBS quien te conoce
|
||||
|
||||
INRES="1920x1080"
|
||||
OUTRES="1280x720"
|
||||
FPS="25"
|
||||
GOP="$((FPS * 2))"
|
||||
GOPMIN="$FPS"
|
||||
CBR="2500k"
|
||||
QUALITY="ultrafast"
|
||||
AUDIO_RATE="44100"
|
||||
TEXT_X="(w-text_w)/2"
|
||||
TEXT_Y="5"
|
||||
TEXT_BG="1"
|
||||
TEXT_BG_COLOR="black"
|
||||
TEXT_BORDER="5"
|
||||
FONT_COLOR="white"
|
||||
FONT_SIZE="24"
|
||||
FONT="$XDG_DATA_HOME/fonts/SanFrancisco/SF-Pro-Display-Regular.otf"
|
||||
TEXT="DooM II - [MAP: Memento Mori] [MUSIC: Memento Mori] [MODS: Project Brutality, UltraM HUD]"
|
||||
SERVER="live-sao"
|
||||
STREAM_KEY="$(pass dgy-twitch)"
|
||||
|
||||
ffmpeg \
|
||||
-thread_queue_size 4096 \
|
||||
-f x11grab \
|
||||
-s "$INRES" \
|
||||
-r "$FPS" \
|
||||
-i :0.0+1366,0 \
|
||||
-f jack \
|
||||
-i jack_out.monitor \
|
||||
-ac 2 \
|
||||
-channel_layout stereo \
|
||||
-async 1 \
|
||||
-f flv \
|
||||
-ar $AUDIO_RATE \
|
||||
-vcodec libx264 \
|
||||
-crf 23 \
|
||||
-g "$GOP" \
|
||||
-keyint_min $GOPMIN \
|
||||
-b:v $CBR \
|
||||
-minrate $CBR \
|
||||
-maxrate $CBR \
|
||||
-pix_fmt yuv420p \
|
||||
-s $OUTRES \
|
||||
-preset $QUALITY \
|
||||
-tune zerolatency \
|
||||
-acodec aac \
|
||||
-b:a 160k \
|
||||
-bufsize $CBR \
|
||||
-vf "drawtext=fontfile='$FONT':text='$TEXT':x='$TEXT_X':y='$TEXT_Y':fontsize='$FONT_SIZE':fontcolor='$FONT_COLOR':box='$TEXT_BG':boxcolor='$TEXT_BG_COLOR':boxborderw='$TEXT_BORDER'" \
|
||||
"rtmp://$SERVER.twitch.tv/app/$STREAM_KEY"
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
FILE="/tmp/strimtemp.txt"
|
||||
|
||||
printf "%s" "$@" > "$FILE"
|
||||
mv "$FILE" "$HOME/doc/strimtext.txt"
|
Reference in New Issue