mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-24 17:44:52 +00:00
fix: keep polybar mail updated
This commit is contained in:
parent
600fd06974
commit
634baf0a7e
@ -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-} "
|
||||
|
Loading…
Reference in New Issue
Block a user