Browse Source

fixed toast so it prints linefeeds

no_compress
Raphael Roberts 7 years ago
parent
commit
0371736015
  1. 8
      main.py

8
main.py

@ -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',

Loading…
Cancel
Save