notes/scripts/python/pyalarm
2022-07-27 05:09:14 -07:00

13 lines
295 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)
args = parser.parse_args()
sleep(args.time)
subprocess.call(["notify-send", "Time's Up!!",])