lemonbar: Cleaning up

Add connection to i3ws object. Log exceptions with debugger
This commit is contained in:
2019-12-03 21:11:04 +01:00
committed by kuben
parent 1367be34be
commit c6f48faff0
6 changed files with 32 additions and 44 deletions

View File

@@ -10,7 +10,6 @@ kill_on_unfocus = []
logger = None
health_logger = None
screen_send_cmd = lambda s : None # TODO temporary until move actions to modules
write_queue = None # TODO Actually, why is this a queue? Just last element is important
# TODO bar mode can be moved to i3Module
@@ -25,13 +24,6 @@ class bar_mode(Enum):
mode = bar_mode.normal
show_secs = False
# Keymaps
def_keymap = 'pl'
keymaps = {'firefox': 'se'}
cur_class = ''
# Helper functions
ansi_escape = re.compile(r'(\x9B|\x1B\[)[0-?]*[ -/]*[@-~]')
def strip_ansi_unicode(s):