From efb3933f5abd696ea524c6652e6774e7bcc5f129 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 10 Apr 2023 23:09:17 -0400 Subject: [PATCH] hide polybar mail notification when no messages --- modules/nixos/graphical/polybar.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nixos/graphical/polybar.nix b/modules/nixos/graphical/polybar.nix index 641aa3f..957008e 100644 --- a/modules/nixos/graphical/polybar.nix +++ b/modules/nixos/graphical/polybar.nix @@ -109,7 +109,7 @@ ${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-} " + echo "" else echo "%{T2}%{T-} $UNREAD " fi