From 39d9c3aeee81c64a7595ede947f1ca121b869b48 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Mon, 23 Jul 2018 12:55:08 +0200 Subject: [PATCH] [git fast commit] 23. Jul 2018 - 12:55:08 --- herbstluftwm/hl_panel_content.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/herbstluftwm/hl_panel_content.py b/herbstluftwm/hl_panel_content.py index de7b483..a6d2708 100755 --- a/herbstluftwm/hl_panel_content.py +++ b/herbstluftwm/hl_panel_content.py @@ -89,6 +89,8 @@ def bwp(): def countdown(): delta = datetime(year=2018,month=7,day=23,hour=12) - datetime.now() + if delta.total_seconds() < 0: + return hl_utils.color_panel('Have a nice life without me fuckers.',RED) tmp = "{} days {} hours remaining".format(delta.days,int(delta.seconds/60/60)) tmp = hl_utils.color_panel(tmp,hl_utils.get_color(delta.days,0,180)) return tmp