Modified script to work with python 2.6
This commit is contained in:
parent
374b9f3a26
commit
13a0a9d71c
1 changed files with 1 additions and 1 deletions
|
@ -37,4 +37,4 @@ if charge < hide_when_charge_is_above:
|
|||
meter = (filled * filled_char + empty * empty_char).encode('utf-8')
|
||||
|
||||
color = 'green'if filled > 6 else 'yellow' if filled > 4 else 'red'
|
||||
sys.stdout.write("%F{{{}}}{}%f".format(color, meter))
|
||||
sys.stdout.write("%F{{{0}}}{1}%f".format(color, meter))
|
||||
|
|
Loading…
Add table
Reference in a new issue