Closed ghost closed 4 years ago
I also have unsecure apps turned on within gmail. The problem is, the amount of unread emails either Home
or Work
will show, never both at the same time. However, if I click on the one which is not showing (to open gmail in the browser) it suddenly switches and shows the number of unread emails:
If I clicked on 'Home' in the above example, it would suddenly show the amount of unread mails.
What's interesting to me is that by default is shows my separator until I click it and then it shows the unread mails
Can you put the "- Home" inside " marks and try again?
Same thing,
Then I click on "Home" and it magically shows 0
@WilkinsPhysics thanks, I will see if I can reproduce on my pc and I'll investigate.
Sorry for the lack of participation for now, I am using BSPWM right now but I still want to maintain this repo as it grow in popularity quite much. Will try to get to this this weekend!
I believe it has to do with the script only using one temporary file here: https://github.com/Anachron/i3blocks/blob/master/blocks/mail#L33
I will make use of mktemp (like I should have) and that should fix it. Thanks for your bug report, @WilkinsPhysics !
Sorry for delayed reply, can you change the intervals of one of them and try again? (something minor such as 59 is ok)
i3blocks.conf set up as such:
and
Where
home_unread.config
andwork_unread.config
are of the style: