- Font Awesome - default email icon.
- canberra-gtk-play - new email sound notification (optional).
- Get polybarmail
git clone http://github.com/ntk148v/polybar-mail.git
cp polybarmail.py ~/.config/polybar/polybarmail.py
cp mail.ini ~/.config/polybar/mail.ini
# Modify mail.ini with your mail configuration
- Scripts arguments
usage: polybarmail.py [-h] [--config CONFIG] [-p PREFIX] [-c COLOR] [-ns] [-dr DURATION]
optional arguments:
-h, --help show this help message and exit
--config CONFIG
-p PREFIX, --prefix PREFIX
-c COLOR, --color COLOR
-ns, --nosound
-dr DURATION, --duration DURATION
- Update polybar config
[module/mail]
type = custom/script
exec = ~/.config/polybar/polybarmail.py
tail = true
click-left = xdg-open https://<your-mail-website>