|
|
|
@ -17,7 +17,11 @@ CHICAGO_TZ = tz.gettz("America/Chicago") |
|
|
|
|
|
|
|
|
|
|
|
def toast(text): |
|
|
|
subprocess.check_call(["termux-toast",text]) |
|
|
|
read, write = os.pipe() |
|
|
|
os.write(write, text.encode()) |
|
|
|
os.close(write) |
|
|
|
subprocess.Popen(["termux-toast", "-g", "top", "-c", "white", "-b", "black"], |
|
|
|
stdin=read) |
|
|
|
|
|
|
|
|
|
|
|
def atoi(text): |
|
|
|
@ -146,6 +150,8 @@ def show(data, rt_filter=None, _clear=False): |
|
|
|
config.format(**locals()), end='\n'*2 |
|
|
|
) |
|
|
|
print("="*36) |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
parser = argparse.ArgumentParser(prog='ctabus') |
|
|
|
parser.add_argument('-l', '--lucky', action='store_true', |
|
|
|
|