From 25fa5f6b66b76a50aab20ebd4899e7bdef5c5343 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 4 Nov 2020 22:52:54 +0530 Subject: pushing almost final changes before going to sleep --- lemonbar/mainbar | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'lemonbar') diff --git a/lemonbar/mainbar b/lemonbar/mainbar index 7737938f..7bf7ecf4 100755 --- a/lemonbar/mainbar +++ b/lemonbar/mainbar @@ -9,9 +9,8 @@ import time import os -day_name = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday','Sunday'] # to make day names more readable - -tag_names = { +day_name = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday','Sunday'] # to make day names more readable +tag_names = { '1':'一', '2':'二', '3':'三', @@ -51,14 +50,12 @@ def getTime(): return '%{F#CB4B16}%{F-}%{B#CB4B16} ' + date + day + ' ' + time + ' %{B-}' def sleepNotifier(): - if int(datetime.datetime.now().strftime("%M")) > 3: + if int(datetime.datetime.now().strftime("%M")) < 6: return "%{c}%{F#171520}%{B#dc322f} Go to sleep! %{B-}%{F-}" else: return "" - -for i in range(0, 10000): -# while True: +while True: time.sleep(0.3) - output = getTags() + '%{r}' + getTime() + sleepNotifier() + output = getTags() + '%{r}' + getTime() + sleepNotifier() os.system("echo '" + output + "'") -- cgit v1.2.3