14 lines
321 B
Python
14 lines
321 B
Python
|
import subprocess
|
||
|
|
||
|
from theme import current_theme, default
|
||
|
|
||
|
icon = ""
|
||
|
count = subprocess.run(
|
||
|
["mu", "msgs-count", "--", "--query=flag:unread AND maildir:/Inbox/"],
|
||
|
stdout=subprocess.PIPE,
|
||
|
encoding="utf-8",
|
||
|
).stdout.strip()
|
||
|
|
||
|
bright = f"^v^^c{current_theme.base8}^"
|
||
|
content = f"{bright}{icon} {count}^t^"
|