✨ Many changes...
This commit is contained in:
parent
5f9bd1cd3a
commit
a20d06652a
3 changed files with 11 additions and 7 deletions
|
|
@ -292,8 +292,13 @@ else
|
||||||
echo "(doesn't apply to gpg or ssh)${txtwhite}"
|
echo "(doesn't apply to gpg or ssh)${txtwhite}"
|
||||||
git config credential.helper 'cache --timeout=3600';
|
git config credential.helper 'cache --timeout=3600';
|
||||||
git config advice.addEmptyPathspec false;
|
git config advice.addEmptyPathspec false;
|
||||||
git add $modified $newfiles ;
|
git add $modified $newfiles;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $deleted ]] ; then
|
||||||
|
git rm $deleted;
|
||||||
|
fi
|
||||||
|
|
||||||
# commits the user's message (multi-word supported)
|
# commits the user's message (multi-word supported)
|
||||||
git commit -m "$gitmoji $cmessage" ;
|
git commit -m "$gitmoji $cmessage" ;
|
||||||
|
|
||||||
|
|
|
||||||
3
scripts/pyalarm
Executable file
3
scripts/pyalarm
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
$HOME/scripts/python/pyalarm $1 &> /dev/null 2>&1 &
|
||||||
|
|
@ -9,9 +9,5 @@ from time import sleep
|
||||||
parser = ArgumentParser()
|
parser = ArgumentParser()
|
||||||
parser.add_argument("time", type=int)
|
parser.add_argument("time", type=int)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
print(f"Starting timer of {args.time} seconds")
|
sleep(args.time)
|
||||||
for _ in range(args.time):
|
subprocess.call(["notify-send", "Time's Up!!",])
|
||||||
print(".", end="", flush=True)
|
|
||||||
sleep(1)
|
|
||||||
# print("Done!")
|
|
||||||
subprocess.call(["notify-send", "Done!"])
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue