diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-04-10 22:45:33 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2020-04-10 22:45:33 -0400 |
commit | 50f227b4535ecd4b13b122ace7872468fa1ddc65 (patch) | |
tree | e8b16adcbaa5871d22ba807a38e4e53a6db4c82c | |
parent | 6a4afea526d1d102e2939f4f7e31bad13569ca12 (diff) |
blocks for STATUSBAR apparently works...
-rwxr-xr-x | bin/mailsync | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/mailsync b/bin/mailsync index 326279c..32c0825 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -17,7 +17,6 @@ export DISPLAY=:0.0 # For individual configurations: [ -d "$HOME/.local/share/password-store" ] && export PASSWORD_STORE_DIR="$HOME/.local/share/password-store" -pgrep i3blocks >/dev/null && STATUSBAR="i3blocks" || STATUSBAR="dwmblocks" # Settings are different for MacOS (Darwin) systems. if [ "$(uname)" = "Darwin" ]; then @@ -51,7 +50,7 @@ else fi echo " 🔃" > /tmp/imapsyncicon_"$USER" -( pkill -RTMIN+12 "${STATUSBAR:?}" >/dev/null 2>&1 ) 2>/dev/null +( pkill -RTMIN+12 "${STATUSBAR:-blocks}" >/dev/null 2>&1 ) 2>/dev/null # Parallelize multiple accounts for account in $accounts @@ -61,7 +60,7 @@ done wait rm -f /tmp/imapsyncicon_"$USER" -( pkill -RTMIN+12 "${STATUSBAR:?}" >/dev/null 2>&1 ) 2>/dev/null +( pkill -RTMIN+12 "${STATUSBAR:-blocks}" >/dev/null 2>&1 ) 2>/dev/null notmuch new 2>/dev/null |