summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortinfoil-hat.net <mail@tinfoil-hat.net>2023-01-11 06:50:18 +0100
committertinfoil-hat.net <mail@tinfoil-hat.net>2023-01-11 06:50:18 +0100
commit640f320164864f779cbd10415ace056de3712543 (patch)
tree9d5895f5ecfcc8d97b8675b449f64c80d7640ca6
parent60f4cba5efce11cec3f1347f954fe4f6ab8168b5 (diff)
downloaddotfiles-640f320164864f779cbd10415ace056de3712543.tar.gz
dotfiles-640f320164864f779cbd10415ace056de3712543.tar.bz2
dotfiles-640f320164864f779cbd10415ace056de3712543.zip
added mutt config files
-rw-r--r--.Xresources2
-rw-r--r--.config/msmtp/config.blanked51
-rw-r--r--.config/neomutt/bindings41
-rw-r--r--.config/neomutt/colors47
-rw-r--r--.config/neomutt/mailcap11
-rw-r--r--.config/neomutt/muttrc.blanked134
-rw-r--r--.weechat/weechat.conf5
-rw-r--r--.zshrc4
8 files changed, 288 insertions, 7 deletions
diff --git a/.Xresources b/.Xresources
index d22bfbf..d6e1b91 100644
--- a/.Xresources
+++ b/.Xresources
@@ -60,7 +60,7 @@ URxvt.depth: 32
URxvt*background: rgba:0000/0000/0000/cccc
-URxvt.letterSpace: -1
+URxvt.letterSpace: 0
URxvt.lineSpace: -2
URxvt.geometry: 80x26
URxvt.internalBorder:10
diff --git a/.config/msmtp/config.blanked b/.config/msmtp/config.blanked
new file mode 100644
index 0000000..e2b089f
--- /dev/null
+++ b/.config/msmtp/config.blanked
@@ -0,0 +1,51 @@
+account privat
+host .org
+port 587
+protocol smtp
+auth on
+user
+from
+tls on
+tls_starttls on
+tls_trust_file /etc/ssl/certs/ca-certificates.crt
+passwordeval gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.config/neomutt/msmtp-mail.gpg
+
+
+account 1
+host .ovh
+port 465
+protocol smtp
+auth on
+user
+from
+tls on
+tls_starttls on
+tls_trust_file /etc/ssl/certs/ca-certificates.crt
+passwordeval gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.config/neomutt/msmtp-mail.gpg
+
+
+account 2
+host .li
+port 465
+protocol smtp
+auth on
+user .org
+from
+tls on
+tls_starttls on
+tls_trust_file /etc/ssl/certs/ca-certificates.crt
+passwordeval gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.config/neomutt/msmtp-mail.gpg
+
+
+account 3
+host .li
+port 465
+protocol smtp
+auth on
+user .li
+from
+tls on
+tls_starttls on
+tls_trust_file /etc/ssl/certs/ca-certificates.crt
+passwordeval gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.config/neomutt/msmtp-mail.gpg
+
diff --git a/.config/neomutt/bindings b/.config/neomutt/bindings
new file mode 100644
index 0000000..2c19155
--- /dev/null
+++ b/.config/neomutt/bindings
@@ -0,0 +1,41 @@
+# some sane vim-like keybindings
+bind index,pager k previous-entry
+bind index,pager j next-entry
+bind index,pager g noop
+bind index,pager \Cu half-up
+bind index,pager \Cd half-down
+bind pager gg top
+bind index gg first-entry
+bind pager G bottom
+bind index G last-entry
+
+# Sidebar Navigation
+bind index,pager <down> sidebar-next
+bind index,pager <up> sidebar-prev
+bind index,pager <right> sidebar-open
+
+# index and pager shortcuts
+bind index,pager @ compose-to-sender
+bind index,pager R group-reply
+bind index,pager D purge-message
+bind index <tab> sync-mailbox
+bind index <space> collapse-thread
+# Save all attachments
+macro index,pager S "<pipe-message>ripmime -i - -d ~/Downloads && rm ~/Downloads/textfile*" "Save all non-text attachments using ripmime"
+# opening urls with urlscan
+macro index,pager \cb "<pipe-message>urlscan<enter>" "call urlscan to extract URLs out of a message"
+# Sync all email
+macro index,pager O "<shell-escape>mbsync -a<enter>" "run mbsync to sync all mail"
+
+# View attachments properly.
+bind attach <return> view-mailcap
+
+# Drafts
+bind compose P postpone-message
+bind index p recall-message
+
+# finding stuff
+bind editor <tab> complete-query
+macro index F "<shell-escape>mu find --clearlinks --format=links --linksdir=~/.mu/results " "mu find"
+macro index \cf "<change-folder-readonly>~/.mu/results<enter>" "mu find results"
+
diff --git a/.config/neomutt/colors b/.config/neomutt/colors
new file mode 100644
index 0000000..593afb0
--- /dev/null
+++ b/.config/neomutt/colors
@@ -0,0 +1,47 @@
+# basic colors ---------------------------------------------------------
+color normal white 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 indicator brightblack yellow
+color tree green default
+
+# sidebarh
+color sidebar_new default blue
+
+# index ----------------------------------------------------------------
+
+color index red 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 brightwhite default "~R" # read messages
+color index blue default "~U" # unread messages
+color index brightyellow default "~v" # messages part of a collapsed thread
+color index brightyellow default "~P" # messages from me
+color index red default "~F" # flagged messages
+color index black red "~D" # deleted messages
+
+# message headers ------------------------------------------------------
+
+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 brightblack default
+color bold black default
+color underline black default
+color normal default default
+
diff --git a/.config/neomutt/mailcap b/.config/neomutt/mailcap
new file mode 100644
index 0000000..822a8dc
--- /dev/null
+++ b/.config/neomutt/mailcap
@@ -0,0 +1,11 @@
+image/*; /usr/local/bin/xdg-open %s
+
+application/msword; /usr/local/bin/xdg-open %s
+application/pdf; /usr/local/bin/xdg-open %s
+application/postscript ; /usr/local/bin/xdg-open %s
+
+# text/html; qutebrowser %s && sleep 5 ; test=test -n "$DISPLAY";
+nametemplate=%s.html; needsterminal
+# text/html; lynx -dump %s ; copiousoutput; nametemplate=%s.html
+text/html; w3m -I %{charset} -T text/html ; copiousoutput; nametemplate=%s.html
+
diff --git a/.config/neomutt/muttrc.blanked b/.config/neomutt/muttrc.blanked
new file mode 100644
index 0000000..23f6c9c
--- /dev/null
+++ b/.config/neomutt/muttrc.blanked
@@ -0,0 +1,134 @@
+set folder = ~/Mail
+set message_cachedir = ~/.config/neomutt/cache/bodies
+set certificate_file = /etc/ssl/certs/ca-certificates.crt
+set mailcap_path = ~/.config/neomutt/mailcap
+set tmpdir = ~/.config/neomutt/tmp
+
+# Sync Mails
+macro index o "<shell-escape>offlineimap<enter>" "run offlineimap for all accounts"
+
+# basic options
+set wait_key = no
+set mbox_type = Maildir
+set timeout = 3
+set mail_check = 0
+set delete
+set quit
+set thorough_search
+set mail_check_stats
+set reply_with_xorig = yes
+unset confirmappend
+unset move
+unset mark_old
+unset beep_new
+
+# Macros
+macro index o "<shell-escape>offlineimap<enter>" "run offlineimap to sync mail for all accounts"
+
+# compose View Options
+set envelope_from # which from?
+set edit_headers # show headers when composing
+set fast_reply # skip to compose when replying
+set askcc # ask for CC:
+set fcc_attach # save attachments with the body
+set forward_format = "Fwd: %s" # format of subject when forwarding
+set forward_decode # decode when forwarding
+set attribution = "On %d, %n wrote:" # format of quoting header
+set reply_to # reply to Reply to: field
+set reverse_name # reply as whomever it was to
+set include # include message in replies
+set forward_quote # include message in forwards
+set editor = "vim"
+set text_flowed
+set sig_dashes # no dashes before sig
+unset mime_forward # forward attachments as part of body
+auto_view image/jpeg application/pdf
+
+# status bar, date format, finding stuff etc.
+set status_chars = " *%A"
+set status_format = "[ Folder: %f ] [%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]%>-%?p?( %p postponed )?"
+set date_format = "%d.%m.%Y %H:%M"
+set index_format = "[%Z] %?X?A&-? %D %-20.20F %s"
+set sort = threads
+set sort_aux = last-date-received
+set uncollapse_jump
+set sort_re
+set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
+set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
+set send_charset = "utf-8:iso-8859-1:us-ascii"
+set charset = "utf-8"
+
+# when composing emails, use this command to get addresses from
+# the addressbook with khard first, and everything else from mu index
+set query_command="goobook query %s"
+
+
+# Pager View Options
+set pager_index_lines = 10
+set pager_context = 3
+set pager_stop
+set menu_scroll
+set tilde
+unset markers
+
+# set mailcup
+set mailcap_path = ~/.config/neomutt/mailcap
+auto_view text/html
+
+# email headers and attachments
+ignore *
+unignore from: to: cc: bcc: date: subject:
+unhdr_order *
+hdr_order from: to: cc: bcc: date: subject:
+alternative_order text/plain text/enriched text/html
+auto_view text/html
+
+# GPG/PGP
+set pgp_decrypt_command= yes
+set my_msmtp_pass="gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.config/neomutt/msmtp-mail.gpg"
+set crypt_use_gpgme = yes
+set crypt_autosign = no
+set crypt_verify_sig = yes
+set crypt_replysign = yes
+set crypt_replyencrypt = yes
+set crypt_replysignencrypted = yes
+
+# sidebar patch config
+set sidebar_visible
+set sidebar_short_path
+set sidebar_folder_indent
+set sidebar_width = 25
+set sidebar_divider_char = ' | '
+set sidebar_indent_string = ' ''
+set sidebar_format = "%B %* [%?N?%N / ?%S]"
+
+# Mailboxes to show in the sidebar.
+mailboxes =****/INBOX =****/Sent =****/Drafts =****/Junk =*****/Trash
+mailboxes =****/INBOX =****/Sent =****/Drafts =****/Spam =****/Trash
+mailboxes =****/INBOX =****/Sent =****/Drafts =****/Junk =*****/Trash
+mailboxes =****/INBOX =****/Sent =****/Drafts =****/Junk =*****/Trash
+mailboxes =****/INBOX =****/Sent =****/Drafts =****/Spam =*****/Trash
+
+# source colors and keybindings
+# keeping those in one place makes it easier for my brain
+source ~/.config/neomutt/colors
+source ~/.config/neomutt/bindings
+
+# And finally the account config for multiple accounts
+#############################################################
+
+# by default, use privat
+set realname = " "
+set spoolfile = "+****/INBOX"
+source ~/.config/neomutt/accounts/****
+source ~/.config/neomutt/accounts/****
+
+# when changing into other mailboxes, use different adresses etc.
+# folder-hook privat/* source ~/.config/neomutt/accounts/privat
+# folder-hook account/* source ~/.config/neomutt/accounts/account
+folder-hook mail/* source ~/.config/neomutt/accounts/*****
+# folder-hook listsub/* source ~/.config/neomutt/accounts/listsub
+# folder-hook social/* source ~/.config/neomutt/accounts/social
+
+set sendmail="/usr/bin/msmtp" # Use msmtp rather than sendmail
+
diff --git a/.weechat/weechat.conf b/.weechat/weechat.conf
index d02ef4d..270606e 100644
--- a/.weechat/weechat.conf
+++ b/.weechat/weechat.conf
@@ -6,7 +6,7 @@
#
# Use commands like /set or /fset to change settings in WeeChat.
#
-# For more info, see: https://weechat.org/doc/quickstart/
+# For more info, see: https://weechat.org/doc/quickstart
#
[debug]
@@ -56,7 +56,6 @@ day_change_message_2dates = "-- %%a, %%d %%b %%Y (%a, %d %b %Y) --"
eat_newline_glitch = off
emphasized_attributes = ""
highlight = "@mitt"
-highlight_disable_regex = ""
highlight_regex = ""
highlight_tags = ""
hotlist_add_conditions = "${away} || ${buffer.num_displayed} == 0"
@@ -617,8 +616,6 @@ title.size = 1
title.size_max = 0
title.type = window
-[custom_bar_item]
-
[layout]
[notify]
diff --git a/.zshrc b/.zshrc
index e4909b1..721bc3e 100644
--- a/.zshrc
+++ b/.zshrc
@@ -12,7 +12,7 @@ source "$HOME/.cargo/env"
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
-ZSH_THEME="fino-time"
+ZSH_THEME="jonathan"
export LANG="en_US.UTF-8"
export LC_COLLATE="en_US.UTF-8"
@@ -134,7 +134,7 @@ alias joplin="~/.npm-global/bin/joplin"
alias chrome="chrome --enable-features=WebUIDarkMode --force-dark-mode"
alias anonradio="torsocks mpv http://anonradio.net:8000/anonradio"
alias technobase="mpv http://listen.technobase.fm/tunein-mp3"
-alias backup-local="~/git/rsync-time-backup/rsync_tmbackup.sh ~/ root@192.168.178.200:/hdds/BACKUP/mint"
+alias backup-local="~/Software/git/rsync-time-backup/rsync_tmbackup.sh ~/ /media/anon/raid/Backup/mint"
alias temps="watch -n 2 sensors"
alias backup-ext="~/Software/git/rsync-time-backup/rsync_tmbackup.sh ~/ anon@goliath:/home/anon/ ~/Software/git/rsync-time-backup/exclude.txt"
alias cal="ncal -w3C"