dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 31f26c73b08bfbe112228c743631e9534ed6b75d
parent 06fb70a6cbff9513c6e0db5f050a4cde7e2ab453
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Mon, 25 May 2020 20:52:08 -0400

use pidof to check for syncs

Diffstat:
M.local/bin/statusbar/mailbox | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.local/bin/statusbar/mailbox b/.local/bin/statusbar/mailbox @@ -15,6 +15,6 @@ esac unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)" -icon="$(cat "/tmp/imapsyncicon_$USER" 2>/dev/null)" +pidof mbsync >/dev/null 2>&1 && icon="🔃" [ "$unread" = "0" ] && [ "$icon" = "" ] || echo "📬$unread$icon"