From e82c109361eb4c03a60efe444d93fdff57627243 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Sat, 30 Jun 2018 06:26:12 +0200 Subject: [PATCH] [git fast commit] 30. Jun 2018 - 06:26:12 --- herbstluftwm/hl_panel_content.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/herbstluftwm/hl_panel_content.py b/herbstluftwm/hl_panel_content.py index 4acd400..bf2361a 100755 --- a/herbstluftwm/hl_panel_content.py +++ b/herbstluftwm/hl_panel_content.py @@ -69,15 +69,17 @@ def bcw(): with open(hl_utils.hlpath(BC_WORD_LOG),'r') as f: tmp = int(f.read()) string = "{} of 6000 words".format(tmp) - return hl_utils.color_panel(string,hl_utils.get_color(tmp,0,8000,reverse=False)) + return hl_utils.color_panel(string,hl_utils.get_color(tmp,0,6000,reverse=False)) except: return "" def bwp(): + tmp = "" try: with open(hl_utils.hlpath(BC_PAGE_LOG),'r') as f: - return hl_utils.color_panel("{} pages".format(f.read().strip()),RED) + tmp = "{} pages".format(f.read().strip()) except: - return "lolwtf" + tmp = "21 pages" + return hl_utils.color_panel(tmp,RED) def countdown():