crabvk / bar-gmail

A Polybar module to show unread messages from Gmail
MIT License
90 stars 12 forks source link

is it possible to have this module check multiple gmail accounts? #26

Closed danixland closed 1 year ago

danixland commented 1 year ago

Hello everyone, I have 3 gmail accounts that I use daily for different purposes, and I'd like to show a counter of the unread emails on every account. Is it possible to run 3 different instances of this module with polybar?

Thanks a lot in advance

danixland commented 1 year ago

I'll answer it myself, it's possible by generating the credentials.json file, then renaming it and then doing it again for another mail account and so on. Then in the polybar config you need to create a module block for every inbox you want to check and at least pass the -cr flag with the renamed credentials file to the exec statement.

Sorry for the noise, I could have easily found out without writing here. cheers