diff --git a/.gitignore b/.gitignore index 372288c..d424da3 100644 --- a/.gitignore +++ b/.gitignore @@ -18,8 +18,8 @@ obs-studio/.config/obs-studio/profiler_data OpenRGB/.config/logs # Protonmail -protonmail/.config/bridge/cache -protonmail/.config/bridge.pem +protonmail/.config/protonmail/bridge/cache +protonmail/.config/protonmail/bridge/*.pem # zsh zsh/.config/zsh/.zcompdump diff --git a/neomutt/.config/neomutt/neomuttrc b/neomutt/.config/neomutt/neomuttrc new file mode 100644 index 0000000..288a32d --- /dev/null +++ b/neomutt/.config/neomutt/neomuttrc @@ -0,0 +1,98 @@ +source $XDG_CONFIG_HOME/neomutt/keys +source $XDG_CONFIG_HOME/neomutt/sidebar + +# ========== IMAP settings ========== +set imap_user = $my_user +set imap_pass = $my_pass + +set mbox_type = Maildir +set folder = imap://127.0.0.1:1143/ +set record = +Sent +set postponed = +Drafts +set spoolfile = +INBOX +set trash = +TRASH +mailboxes = +INBOX +set mail_check = 2 # seconds + +# Store message headers to speed things up +set header_cache = $XDG_CACHE_HOME/neomutt + +# Store messages locally to speed things up +set message_cachedir = $XDG_CACHE_HOME/neomutt + +# Save/look for drafts here +set postponed = +Drafts + +# Allow neomutt to open a new IMAP connection automatically +unset imap_passive + +# Keepalive connection (in seconds) +set imap_keepalive = 300 + +# Check for mail this often (in seconds) +set mail_check = 120 + +# ========== SMTP settings ========== +set smtp_pass = $my_pass +set realname = 'Eric Torres' +set from = $my_user +set use_from = yes + +# Local protonmail bridge server settings +set smtp_url = smtp://$my_user:$smtp_pass@127.0.0.1:1025 +set ssl_force_tls = yes +set ssl_starttls = yes + +# ========== Miscellaneous Settings ========== +# move email to archive +macro index,pager A ":set confirmappend=no delete=yes\n+Archive\n:set confirmappend=yes delete=ask-yes\n" + +# vim-like bindings +bind index,pager g noop +bind pager gg top +bind pager G bottom +bind alias,index,browser,query gg first-entry +bind alias,index,browser,query G last-entry +bind pager j next-line +bind pager k previous-line +bind pager \Cj next-entry +bind pager \Ck previous-entry +bind index za collapse-thread +bind index D delete-thread +bind alias,index,pager,browser,query \Cd half-down +bind alias,index,pager,browser,query \Cu half-up +bind index,pager y group-reply + +# suppress "press any key to continue" +unset wait_key + +# go to first entry instead of first unread entry when loading a folder +folder-hook . 'push ' + +# faster switching of mailboxes +set sleep_time = 0 + +# pager interface +set pager_index_lines = 6 # number of index lines to show +set pager_context = 3 # lines of context +set pager_stop # don't jump to the next email at end of current one + +# colors +color indicator color16 color35 # selected item +color index color110 default ~A # all messages +color index color35 default ~N # new messages +color index color35 default ~U # unread messages +color index color238 default ~D # deleted messages +color attachment color238 default # attachment headers +color quoted color240 default # quoted emails +color hdrdefault green default # headers +color header color25 default "^(From|To|Cc|Bcc)" +color header color33 default "^(Subject)" +color header color238 default "^(Date)" +color status default default + +# urls +color body color33 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<>\"]" + +# emails +color body color33 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]\\])" diff --git a/neomutt/.config/neomutt/sidebar b/neomutt/.config/neomutt/sidebar new file mode 100644 index 0000000..0e98e11 --- /dev/null +++ b/neomutt/.config/neomutt/sidebar @@ -0,0 +1,116 @@ +# Should the Sidebar be shown? +set sidebar_visible = yes + +# How wide should the Sidebar be in screen columns? +# Note: Some characters, e.g. Chinese, take up two columns each. +set sidebar_width = 20 + +# Should the mailbox paths be abbreviated? +set sidebar_short_path = no + +# When abbreviating mailbox path names, use any of these characters as path +# separators. Only the part after the last separators will be shown. +# For file folders '/' is good. For IMAP folders, often '.' is useful. +set sidebar_delim_chars = '/.' + +# If the mailbox path is abbreviated, should it be indented? +set sidebar_folder_indent = no + +# Indent mailbox paths with this string. +set sidebar_indent_string = ' ' + +# Make the Sidebar only display mailboxes that contain new, or flagged, +# mail. +set sidebar_new_mail_only = no + +# Any mailboxes that are whitelisted will always be visible, even if the +# sidebar_new_mail_only option is enabled. +#sidebar_whitelist '/home/ox/.mail/<>/INBOX' +#sidebar_whitelist '/home/ox/.mail/<>/sent' + +# When searching for mailboxes containing new mail, should the search wrap +# around when it reaches the end of the list? +set sidebar_next_new_wrap = no + +# Show the Sidebar on the right-hand side of the screen +set sidebar_on_right = no + +# The character to use as the divider between the Sidebar and the other Mutt +# panels. +# Note: Only the first character of this string is used. +set sidebar_divider_char = '|' + +# Enable extended buffy mode to calculate total, new, and flagged +# message counts for each mailbox. +set mail_check_stats + +# Display the Sidebar mailboxes using this format string. +set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S' + +# Sort the mailboxes in the Sidebar using this method: +# count - total number of messages +# flagged - number of flagged messages +# new - number of new messages +# path - mailbox path +# unsorted - do not sort the mailboxes +set sidebar_sort_method = 'unsorted' + +# -------------------------------------------------------------------------- +# FUNCTIONS - shown with an example mapping +# -------------------------------------------------------------------------- + +# Move the highlight to the previous mailbox +bind index,pager \Cp sidebar-prev + +# Move the highlight to the next mailbox +bind index,pager \Cn sidebar-next + +# Open the highlighted mailbox +bind index,pager \Co sidebar-open + +# Move the highlight to the previous page +# This is useful if you have a LOT of mailboxes. +bind index,pager sidebar-page-up + +# Move the highlight to the next page +# This is useful if you have a LOT of mailboxes. +bind index,pager sidebar-page-down + +# Move the highlight to the previous mailbox containing new, or flagged, +# mail. +bind index,pager sidebar-prev-new + +# Move the highlight to the next mailbox containing new, or flagged, mail. +bind index,pager sidebar-next-new + +# Toggle the visibility of the Sidebar. +bind index,pager B sidebar-toggle-visible + +# -------------------------------------------------------------------------- +# COLORS - some unpleasant examples are given +# -------------------------------------------------------------------------- +# Note: All color operations are of the form: +# color OBJECT FOREGROUND BACKGROUND + +# Color of the current, open, mailbox +# Note: This is a general Mutt option which colors all selected items. +color indicator red red + +# Color of the highlighted, but not open, mailbox. +color sidebar_highlight red red + +# Color of the divider separating the Sidebar from Mutt panels +color sidebar_divider red red + +# Color to give mailboxes containing flagged mail +color sidebar_flagged red red + +# Color to give mailboxes containing new mail +color sidebar_new red red + +# Color to give mailboxes containing no new/flagged mail, etc +color sidebar_ordinary red red + +# -------------------------------------------------------------------------- + +# vim: syntax=muttrc diff --git a/protonmail/.config/protonmail/bridge/prefs.json b/protonmail/.config/protonmail/bridge/prefs.json new file mode 100644 index 0000000..f619778 --- /dev/null +++ b/protonmail/.config/protonmail/bridge/prefs.json @@ -0,0 +1,28 @@ +{ + "allow_proxy": "true", + "attachment_workers": "16", + "autostart": "true", + "autoupdate": "true", + "cache_compression": "true", + "cache_concurrent_read": "16", + "cache_concurrent_write": "16", + "cache_enabled": "true", + "cache_location": "/home/etorres/.config/protonmail/bridge/cache/c11/messages", + "cache_min_free_abs": "250000000", + "cache_min_free_rat": "", + "color_scheme": "dark", + "fetch_workers": "16", + "first_time_start": "false", + "first_time_start_gui": "true", + "imap_workers": "16", + "last_heartbeat": "144", + "last_used_version": "2.1.3+git", + "preferred_keychain": "secret-service", + "report_outgoing_email_without_encryption": "false", + "rollout": "0.1204141437985741", + "update_channel": "stable", + "user_port_api": "1042", + "user_port_imap": "1143", + "user_port_smtp": "1025", + "user_ssl_smtp": "false" +} \ No newline at end of file