Merge branch 'master' of github.com:codemicro/bar
This commit is contained in:
commit
3393c5ce2d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue