summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-mail
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-08-05 19:30:47 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-08-05 19:30:47 -0400
commit9ebf91e892cbafbf03d09f3adca652db181d1587 (patch)
tree299f0a362d3ad0f7be8757c7b3cbd2ee715b65cc /.local/bin/dwmbar/dwmb-mail
parentda5ef3b9e22e11192279f0becaa0c8c35b7ff929 (diff)
Wayland migration (first of many)
Diffstat (limited to '.local/bin/dwmbar/dwmb-mail')
-rwxr-xr-x.local/bin/dwmbar/dwmb-mail6
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/dwmbar/dwmb-mail b/.local/bin/dwmbar/dwmb-mail
index 4170c61..92324c6 100755
--- a/.local/bin/dwmbar/dwmb-mail
+++ b/.local/bin/dwmbar/dwmb-mail
@@ -5,6 +5,6 @@
unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/*/new/* -type f | wc -l 2>/dev/null)"
-pidof mbsync >/dev/null 2>&1 && icon=" "
-
-[ "$unread" = "0" ] && [ "$icon" = "" ] || echo "  $unread$icon "
+# [ "$unread" = "0" ] && [ "$icon" = "" ] || echo " $unread"
+#
+[ "$unread" = "0" ] && [ "$icon" = "" ] || printf '{"text":" %s", "class":"block"}\n' "$unread"