lemonbar: Find and launch all modules at runtime

This commit is contained in:
kuben
2020-01-08 23:41:54 +01:00
committed by Jakub Fojt
parent c63af798fe
commit 827870bc01
2 changed files with 66 additions and 55 deletions

View File

@@ -26,6 +26,9 @@ class bar_mode(Enum):
mode = bar_mode.normal
# Helper functions
def hostname():
return os.uname()[1]
ansi_escape = re.compile(r'(\x9B|\x1B\[)[0-?]*[ -/]*[@-~]')
def strip_ansi_unicode(s):
# ANSI escape sequences are for colors in terminal and similar