✨ Updated scripts
This commit is contained in:
parent
ff8b1a3b90
commit
dcc085f826
4 changed files with 55 additions and 7 deletions
|
|
@ -1,13 +1,14 @@
|
|||
#!/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("time", type=int)
|
||||
parser.add_argument("-t", type=int)
|
||||
args = parser.parse_args()
|
||||
sleep(args.time)
|
||||
subprocess.call(["notify-send", "Time's Up!!",])
|
||||
sleep(args.t)
|
||||
# sleep(args.time)
|
||||
subprocess.call(["notify-send", "Time's Up!!"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue