From 64ae7b13ebdf5c89b95a51ad098d738d37940711 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sat, 15 Mar 2025 17:30:07 -0400 Subject: [PATCH] AutoYADM commit: 2025-03-15 17:30:07 --- .config/mail/mail-sync.sh | 11 +++++++++++ .config/waybar/config | 2 +- .../yazi/plugins/custom-shell.yazi/yazi_cmd_history | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.config/mail/mail-sync.sh b/.config/mail/mail-sync.sh index bd779fcc..c19e2fb2 100755 --- a/.config/mail/mail-sync.sh +++ b/.config/mail/mail-sync.sh @@ -1,5 +1,10 @@ #!/bin/sh +PIPE="/tmp/email_refresh_pipe" + +# Create pipe if doesn't exist +[ -p "$PIPE" ] || mkfifo "$PIPE" + MBSYNC=$(pgrep mbsync) NOTMUCH=$(pgrep notmuch) @@ -11,7 +16,13 @@ fi echo "Deleting messages tagged as *deleted*" notmuch search --format=text0 --output=files tag:deleted | xargs -0 --no-run-if-empty rm -v +# sync mailbox with external servers mbsync -Va +# apply tag:new to new mail notmuch new +# new mail tagging pipeline afew --tag --new +# signal waybar indicator update +echo "refresh" > "$PIPE" +# generate new ranked addressbook maildir-rank-addr diff --git a/.config/waybar/config b/.config/waybar/config index 1a72cd84..f74af9fd 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -12,7 +12,7 @@ "niri/window" ], "modules-right": [ - // "custom/mail", + "custom/mail", "cpu", "custom/delim", "memory", diff --git a/.config/yazi/plugins/custom-shell.yazi/yazi_cmd_history b/.config/yazi/plugins/custom-shell.yazi/yazi_cmd_history index 7b85b18b..a07c0e7f 100644 --- a/.config/yazi/plugins/custom-shell.yazi/yazi_cmd_history +++ b/.config/yazi/plugins/custom-shell.yazi/yazi_cmd_history @@ -7,3 +7,4 @@ zsh -ic 'ya pack -a yazi-rs/plugins:git;exit' zsh -ic 'ya pack -a Rolv-Apneseth/starship;exit' zsh -ic 'mksh newmail;exit' zsh -ic 'mksh mail-indicator;exit' +zsh -ic 'mksh async;exit'