notes/scripts/python/pyalarm
2022-09-04 02:02:50 -07:00

14 lines
349 B
Python
Executable file

#!/bin/python
# https://realpython.com/python-subprocess/
import subprocess
from argparse import ArgumentParser
from time import sleep
parser = ArgumentParser()
# parser.add_argument("time", type=int)
parser.add_argument("-t", type=int)
args = parser.parse_args()
sleep(args.t)
# sleep(args.time)
subprocess.call(["notify-send", "Time's Up!!"])