mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 20:25:38 +00:00
fix: keep polybar mail updated
This commit is contained in:
parent
600fd06974
commit
634baf0a7e
@ -106,6 +106,7 @@
|
|||||||
interval = 10;
|
interval = 10;
|
||||||
format = "<label>";
|
format = "<label>";
|
||||||
exec = builtins.toString (pkgs.writeShellScript "mailcount.sh" ''
|
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)
|
UNREAD=$(${pkgs.notmuch}/bin/notmuch count is:inbox and is:unread)
|
||||||
if [ $UNREAD = "0" ]; then
|
if [ $UNREAD = "0" ]; then
|
||||||
echo "%{T3}%{T-} "
|
echo "%{T3}%{T-} "
|
||||||
|
Loading…
Reference in New Issue
Block a user