lemonbar: Trigger formatting on mode cycle and i3ws events

This commit is contained in:
2020-02-02 21:06:05 +01:00
parent b21211fc2b
commit e6dc178e4d
3 changed files with 20 additions and 3 deletions

View File

@@ -140,7 +140,7 @@ class LemonParser:
if unit.alt_scheme == COLOR_SCHEME.INA:
unit.alt_scheme = COLOR_SCHEME.A1_INA if alt == 1 else COLOR_SCHEME.A2_INA
formatted.append(unit.format())
formatted.append(unit.format()) # TODO cache last format
alt = alt + 1 if alt + 1 <= 2 else 1
formatted.append(block(fg='-', bg='-')) # Not sure if needed