diff options
-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 + "'") |