fix: keep polybar mail updated

This commit is contained in:
Noah Masur 2023-04-04 08:32:01 -04:00
parent 600fd06974
commit 634baf0a7e

View File

@ -106,6 +106,7 @@
interval = 10;
format = "<label>";
exec = builtins.toString (pkgs.writeShellScript "mailcount.sh" ''
${pkgs.notmuch}/bin/notmuch new > /dev/null
UNREAD=$(${pkgs.notmuch}/bin/notmuch count is:inbox and is:unread)
if [ $UNREAD = "0" ]; then
echo "%{T3}%{T-} "