BitBar 的插件源里已经有了个 Notmuch 的插件,但不符合我的需求,我只要显示未读数目:
~/src/bitbar-plugins$ cat notmuch-mail-count.15s.sh
#!/bin/sh
PATH="/usr/local/bin:$PATH"
printf "@ %s" `notmuch count tag:unread`
效果图:
BitBar 的插件源里已经有了个 Notmuch 的插件,但不符合我的需求,我只要显示未读数目:
~/src/bitbar-plugins$ cat notmuch-mail-count.15s.sh
#!/bin/sh
PATH="/usr/local/bin:$PATH"
printf "@ %s" `notmuch count tag:unread`
效果图:
我搞了个emoji www
printf "📮 %s" $(notmuch count tag:unread)