Update panel config
This commit is contained in:
parent
daa7d89427
commit
de32e10a94
2 changed files with 4 additions and 2 deletions
|
|
@ -11,6 +11,7 @@ bspc config focus_by_distance true
|
||||||
bspc config focus_follows_pointer true
|
bspc config focus_follows_pointer true
|
||||||
|
|
||||||
bspc config initial_polarity second_child
|
bspc config initial_polarity second_child
|
||||||
|
bspc config remove_unplugged_monitors true
|
||||||
|
|
||||||
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ def status_update(data):
|
||||||
'T': None, # focused node state
|
'T': None, # focused node state
|
||||||
'G': None, # focused node active flags
|
'G': None, # focused node active flags
|
||||||
}
|
}
|
||||||
|
|
||||||
data = data.decode('utf-8')
|
data = data.decode('utf-8')
|
||||||
assert data[0] == 'W'
|
assert data[0] == 'W'
|
||||||
data = data[1:-1]
|
data = data[1:-1]
|
||||||
|
|
@ -69,7 +70,7 @@ def volume_update(_):
|
||||||
volume, mute, _ = info.split(' ')
|
volume, mute, _ = info.split(' ')
|
||||||
volume = int(volume)
|
volume = int(volume)
|
||||||
muted = mute == 'yes'
|
muted = mute == 'yes'
|
||||||
mute_icon = "-" if muted else "%%"
|
mute_icon = "-" if muted else "%"
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
if not muted:
|
if not muted:
|
||||||
kwargs['bg'] = COLOR_WARNING_BG
|
kwargs['bg'] = COLOR_WARNING_BG
|
||||||
|
|
@ -95,7 +96,7 @@ def battery_update(_):
|
||||||
colors = {}
|
colors = {}
|
||||||
if state != 'Charging' and charge < 5:
|
if state != 'Charging' and charge < 5:
|
||||||
colors['bg'] = COLOR_URGENT_BG
|
colors['bg'] = COLOR_URGENT_BG
|
||||||
return 'battery', color_string("%s %d%%%%" % (state, charge), **colors)
|
return 'battery', color_string("%s %d%%" % (state, charge), **colors)
|
||||||
|
|
||||||
|
|
||||||
def make_string(status, clock, volume, battery, wifi):
|
def make_string(status, clock, volume, battery, wifi):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue