Commit 3e48041
xxwhirlpool
·
2026-09-11 21:05:21 -0400 EDT
parent df78830
email, misc
8 files changed,
+83,
-2
+1,
-0
| ... | ... | @@ -56,6 +56,7 @@ config/.local/bin/vapoursynth | |
| 56 | 56 | config/.local/bin/vspipe | |
| 57 | 57 | config/.local/bin/vsscale | |
| 58 | 58 | config/.local/bin/rolodex | |
| 59 | + | config/.local/bin/wego | |
| 59 | 60 | ||
| 60 | 61 | .directory | |
| 61 | 62 | scripts/Scripts/.directory |
| ... | ... | @@ -21,6 +21,9 @@ set postponed = "+Drafts" | |
| 21 | 21 | set record = "+Sent" | |
| 22 | 22 | set trash = "+Trash" | |
| 23 | 23 | ||
| 24 | + | set nm_default_url = "notmuch:///home/kat/.local/mail/melodicake@disroot.org" | |
| 25 | + | set virtual_spool_file = yes | |
| 26 | + | ||
| 24 | 27 | mailboxes =Drafts =Sent =Junk =Trash | |
| 25 | 28 | ||
| 26 | 29 | # where the stuff goes |
+12,
-1
| ... | ... | @@ -10,7 +10,18 @@ folder-hook "melodicake_disroot" "source $XDG_CONFIG_HOME/mutt/melodicake_disroo | |
| 10 | 10 | folder-hook "witnesslachesis_disroot" "source $XDG_CONFIG_HOME/mutt/witnesslachesis_disroot.rc" | |
| 11 | 11 | ||
| 12 | 12 | # accounts | |
| 13 | + | # ctrl+a & ctrl+b | |
| 13 | 14 | source $XDG_CONFIG_HOME/mutt/melodicake_disroot.rc | |
| 14 | 15 | macro index \Ca "<sync-mailbox><refresh><enter-command>source $XDG_CONFIG_HOME/mutt/melodicake_disroot.rc<enter><change-folder>!<enter>" | |
| 15 | 16 | macro index \Cb "<sync-mailbox><refresh><enter-command>source $XDG_CONFIG_HOME/mutt/witnesslachesis_disroot.rc<enter><change-folder>!<enter>" | |
| 16 | - | macro index o "<shell-escape>mbsync -a<Enter>" "sync all mail with mbsync" | |
| 17 | + | ||
| 18 | + | # sync mail | |
| 19 | + | # o for melo | |
| 20 | + | # p for lachesis | |
| 21 | + | macro index o "<shell-escape>syncmail melo<Enter>" "sync & index all mail on melo" | |
| 22 | + | macro index p "<shell-escape>syncmail lachesis<Enter>" "sync & index all mail on lachesis" | |
| 23 | + | ||
| 24 | + | # urlscan | |
| 25 | + | # ctrl+u | |
| 26 | + | macro index,pager \cu "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message" | |
| 27 | + | macro attach,compose \cu "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message" |
| ... | ... | @@ -21,6 +21,9 @@ set postponed = "+Drafts" | |
| 21 | 21 | set record = "+Sent" | |
| 22 | 22 | set trash = "+Trash" | |
| 23 | 23 | ||
| 24 | + | set nm_default_url = "notmuch:///home/kat/.local/mail/witnesslachesis@disroot.org" | |
| 25 | + | set virtual_spool_file = yes | |
| 26 | + | ||
| 24 | 27 | mailboxes =Drafts =Sent =Junk =Trash | |
| 25 | 28 | ||
| 26 | 29 | # where the stuff goes |
| ... | ... | @@ -0,0 +1,19 @@ | |
| 1 | + | [database] | |
| 2 | + | path=/home/kat/.local/mail/witnesslachesis@disroot.org | |
| 3 | + | ||
| 4 | + | [user] | |
| 5 | + | name=kat cain | |
| 6 | + | primary_email=witnesslachesis@disroot.org | |
| 7 | + | ||
| 8 | + | [new] | |
| 9 | + | tags=unread;inbox; | |
| 10 | + | ignore= | |
| 11 | + | ||
| 12 | + | [search] | |
| 13 | + | exclude_tags=deleted;spam; | |
| 14 | + | ||
| 15 | + | [maildir] | |
| 16 | + | synchronize_flags=true | |
| 17 | + | ||
| 18 | + | [crypto] | |
| 19 | + | gpg_path=gpg |
| ... | ... | @@ -0,0 +1,20 @@ | |
| 1 | + | [database] | |
| 2 | + | path=/home/kat/.local/mail/melodicake@disroot.org | |
| 3 | + | ||
| 4 | + | [user] | |
| 5 | + | name=kat cain | |
| 6 | + | primary_email=melodicake@disroot.org | |
| 7 | + | ||
| 8 | + | [new] | |
| 9 | + | tags=unread;inbox; | |
| 10 | + | ignore= | |
| 11 | + | ||
| 12 | + | [search] | |
| 13 | + | exclude_tags=deleted;spam; | |
| 14 | + | ||
| 15 | + | [maildir] | |
| 16 | + | synchronize_flags=true | |
| 17 | + | ||
| 18 | + | [crypto] | |
| 19 | + | gpg_path=gpg | |
| 20 | + |
+23,
-0
| ... | ... | @@ -0,0 +1,23 @@ | |
| 1 | + | #!/usr/bin/env bash | |
| 2 | + | ||
| 3 | + | # pick addr based on arg | |
| 4 | + | # e.g. `syncmail melo` | |
| 5 | + | if [[ "$1" == "melo" ]]; then | |
| 6 | + | addr="$HOME/.config/notmuch/.notmuch-config-melo" | |
| 7 | + | elif [[ "$1" == "lachesis" ]]; then | |
| 8 | + | addr="$HOME/.config/notmuch/.notmuch-config-lachesis" | |
| 9 | + | elif [[ "$#" -eq 0 || "$1" != "melo" || "$1" != "lachesis" ]]; then | |
| 10 | + | echo "no addr or wrong addr" | |
| 11 | + | exit 1 | |
| 12 | + | fi | |
| 13 | + | ||
| 14 | + | # use right config | |
| 15 | + | notmuchsync() { | |
| 16 | + | notmuch --config="$addr" "$@" | |
| 17 | + | } | |
| 18 | + | ||
| 19 | + | # sync all mail | |
| 20 | + | mbsync -a | |
| 21 | + | ||
| 22 | + | # index mail | |
| 23 | + | notmuchsync new |
+2,
-1
| ... | ... | @@ -24,9 +24,10 @@ vidsubs() { | |
| 24 | 24 | } | |
| 25 | 25 | ||
| 26 | 26 | vidhash() { | |
| 27 | + | shopt -s nullglob | |
| 27 | 28 | # borrowed from my buddy neckspike: | |
| 28 | 29 | # https://pastebin.com/mg3CVDiU | |
| 29 | - | for f in *.mkv; do | |
| 30 | + | for f in *.{mkv,mp4}; do | |
| 30 | 31 | hash=$(crc32 "$f" | tr '[:lower:]' '[:upper:]') | |
| 31 | 32 | ext="${f##*.}" | |
| 32 | 33 | newname="${f%.*} [$hash]".$ext |