Swap volume and battery in panel
This commit is contained in:
parent
f9cdda2e55
commit
9b34c1ff47
1 changed files with 2 additions and 2 deletions
|
|
@ -94,14 +94,14 @@ def battery_update(_):
|
|||
state = state
|
||||
charge = int(charge[:-1])
|
||||
colors = {}
|
||||
if state != 'Charging' and charge < 5:
|
||||
if state != 'Charging' and charge < 10:
|
||||
colors['bg'] = COLOR_URGENT_BG
|
||||
return 'battery', color_string("%s %d%%" % (state, charge), **colors)
|
||||
|
||||
|
||||
def make_string(status, clock, volume, battery, wifi):
|
||||
print("%%{1}%s%%{c}%%{r}%s%s%s%s%s%s%s" %
|
||||
(status, wifi, divider, battery, divider, volume, divider, clock))
|
||||
(status, wifi, divider, volume, divider, battery, divider, clock))
|
||||
|
||||
|
||||
def open_socket(address):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue