From 9ebf91e892cbafbf03d09f3adca652db181d1587 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Mon, 5 Aug 2024 19:30:47 -0400 Subject: Wayland migration (first of many) --- .local/bin/dwmbar/dwmb-mail | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.local/bin/dwmbar/dwmb-mail') 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" -- cgit v1.2.3