summaryrefslogtreecommitdiffstats
path: root/py3status
diff options
context:
space:
mode:
Diffstat (limited to 'py3status')
-rw-r--r--py3status/modules/imap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/py3status/modules/imap.py b/py3status/modules/imap.py
index cace8bd..1e01513 100644
--- a/py3status/modules/imap.py
+++ b/py3status/modules/imap.py
@@ -18,7 +18,7 @@ class Py3status:
criterion = 'UNSEEN'
imap_server = '<IMAP_SERVER>'
mailbox = 'INBOX'
- name = 'Mail'
+ name = 'Mail: %unseen'
password = '<PASSWORD>'
port = '993'
user = '<USERNAME>'
@@ -38,7 +38,7 @@ class Py3status:
response['full_text'] = mail_count
elif mail_count != 0:
response['color'] = new_mail_color
- response['full_text'] = self.name
+ response['full_text'] = self.name.replace('%unseen', str(mail_count))
else:
response['color'] = new_mail_color
response['full_text'] = ''