diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-11-04 22:52:54 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-11-04 22:52:54 +0530 |
commit | 25fa5f6b66b76a50aab20ebd4899e7bdef5c5343 (patch) | |
tree | 58b88b6c5b16c76c89d2c82d1a1c2d55353d41eb | |
parent | 15fbefd21f608a15e4ee9606477a2b8674944e05 (diff) |
pushing almost final changes before going to sleep
-rwxr-xr-x | lemonbar/mainbar | 13 |
1 files changed, 5 insertions, 8 deletions
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 + "'") |