summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-05-25 21:01:52 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-05-25 21:01:52 -0400
commit3bf2023dd5a82ed1b3e53aad4d24d537e68105fc (patch)
tree0e9a97d6e3e411c5eafacf237d244cbfbb20a49c
parentaaeb0a73dc0904f9258743683e96e2439f88ba56 (diff)
don't use extra icon file
use kill instead of pkill for speed
-rwxr-xr-xbin/mailsync6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/mailsync b/bin/mailsync
index 3104c65..6ee7f51 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -54,8 +54,7 @@ else
accounts=$*
fi
-echo " 🔃" > /tmp/imapsyncicon_"$USER"
-( pkill -RTMIN+12 "${STATUSBAR:-blocks}" >/dev/null 2>&1 ) 2>/dev/null
+( kill -46 "$(pidof "${STATUSBAR:-dwmblocks}")" >/dev/null 2>&1 ) 2>/dev/null
# Parallelize multiple accounts
for account in $accounts
@@ -64,8 +63,7 @@ do
done
wait
-rm -f /tmp/imapsyncicon_"$USER"
-( pkill -RTMIN+12 "${STATUSBAR:-blocks}" >/dev/null 2>&1 ) 2>/dev/null
+( kill -46 "$(pidof "${STATUSBAR:-dwmblocks}")" >/dev/null 2>&1 ) 2>/dev/null
notmuch new 2>/dev/null