diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-05-25 20:52:08 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-05-25 20:52:08 -0400 |
| commit | 31f26c73b08bfbe112228c743631e9534ed6b75d (patch) | |
| tree | 42cca5d478b2a64b272d5a876368d84b534144fa | |
| parent | 06fb70a6cbff9513c6e0db5f050a4cde7e2ab453 (diff) | |
| download | eibhear-31f26c73b08bfbe112228c743631e9534ed6b75d.tar.gz eibhear-31f26c73b08bfbe112228c743631e9534ed6b75d.tar.zst eibhear-31f26c73b08bfbe112228c743631e9534ed6b75d.zip | |
use pidof to check for syncs
| -rwxr-xr-x | .local/bin/statusbar/mailbox | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/mailbox b/.local/bin/statusbar/mailbox index d04b971..8f87d75 100755 --- 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" |
