wget https://raw.githubusercontent.com/aecepoglu/easyi3status-maildir/master/maildir.py -P ~/.config/easyi3status/modules/
wget https://raw.githubusercontent.com/aecepoglu/easyi3status-maildir/master/config.yaml -O - >> ~/.config/easyi3status/config.yaml
Open ~/.config/easyi3status/config.yaml
and set your maildir path
- name: maildir
config:
path: /home/aecepoglu/mail/inbox #set this to point to a maildir directory
And restart i3 for the changes to take effect.
path
: path to a maildir folder. REQUIRED. It expects there to be a folder with maildir structure (with cur, new, tmp folders at given path)label
: optional labelhideCount
: hides the count from the display.true
orfalse
. Defaults tofalse
hideIfZero
: show nothing if the count is 0.true
orfalse
. Defaults tofalse
If you have multiple accounts or directories you want to track for new mails, just add multiple maildir instances to your config.yaml
:
- name: maildir
config:
label: "home"
path: /home/aecepoglu/mail/inbox
- name: maildir
config:
label: "work"
path: /home/aecepoglu/mail/work
You will see this error if your maildir path is wrong. Check the folder exists and is accessible