Merge branch 'master' of github.com:codemicro/bar

This commit is contained in:
akp 2022-04-15 12:19:53 +01:00
commit 3393c5ce2d
No known key found for this signature in database
GPG key ID: AA5726202C8879B7

View file

@ -115,7 +115,7 @@ func (g *Battery) Block(colors *i3bar.ColorSet) (*i3bar.Block, error) {
if percentage < g.WarningThreshold && g.WarningThreshold != 0 {
if g.previousWasBackgroundWarning {
if g.previousWasBackgroundWarning || state == "CHR" { // disable flashing when on charge
block.TextColor = colors.Bad
} else {
block.BackgroundColor = colors.Bad