ntk148v / polybar-mail

A Polybar module written in pure Python to show unread messages from mail inspired by polybar-gmail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Polybar Mail

A Polybar module to show unread messages from mail inspired by polybar-gmail

GitHub license GitHub stars


Preview

Dependencies

  • Font Awesome - default email icon.
  • canberra-gtk-play - new email sound notification (optional).

Installation

  • 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>

About

A Polybar module written in pure Python to show unread messages from mail inspired by polybar-gmail

License:Apache License 2.0


Languages

Language:Python 100.0%