Browse Source

blocks for STATUSBAR apparently works...

tags/v3.1
Luke Smith 4 years ago
parent
commit
50f227b453
No known key found for this signature in database GPG Key ID: 4C50B54A911F6252
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      bin/mailsync

+ 2
- 3
bin/mailsync View File

@@ -17,7 +17,6 @@ export DISPLAY=:0.0


# For individual configurations: # For individual configurations:
[ -d "$HOME/.local/share/password-store" ] && export PASSWORD_STORE_DIR="$HOME/.local/share/password-store" [ -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. # Settings are different for MacOS (Darwin) systems.
if [ "$(uname)" = "Darwin" ]; then if [ "$(uname)" = "Darwin" ]; then
@@ -51,7 +50,7 @@ else
fi fi


echo " 🔃" > /tmp/imapsyncicon_"$USER" 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 # Parallelize multiple accounts
for account in $accounts for account in $accounts
@@ -61,7 +60,7 @@ done


wait wait
rm -f /tmp/imapsyncicon_"$USER" 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 notmuch new 2>/dev/null




Loading…
Cancel
Save