diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc index 6f556c8..99377a6 100755 --- a/bspwm/bspwmrc +++ b/bspwm/bspwmrc @@ -11,6 +11,7 @@ bspc config focus_by_distance true bspc config focus_follows_pointer true 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 diff --git a/panel/panel_bar.py b/panel/panel_bar.py index da4dca4..a9e100a 100755 --- a/panel/panel_bar.py +++ b/panel/panel_bar.py @@ -43,6 +43,7 @@ def status_update(data): 'T': None, # focused node state 'G': None, # focused node active flags } + data = data.decode('utf-8') assert data[0] == 'W' data = data[1:-1] @@ -69,7 +70,7 @@ def volume_update(_): volume, mute, _ = info.split(' ') volume = int(volume) muted = mute == 'yes' - mute_icon = "-" if muted else "%%" + mute_icon = "-" if muted else "%" kwargs = {} if not muted: kwargs['bg'] = COLOR_WARNING_BG @@ -95,7 +96,7 @@ def battery_update(_): colors = {} if state != 'Charging' and charge < 5: 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):