From a20d06652af494c48ffd9ddf29b3e817096d8176 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Wed, 27 Jul 2022 05:09:14 -0700 Subject: [PATCH] :sparkles: Many changes... --- scripts/bgit | 7 ++++++- scripts/pyalarm | 3 +++ scripts/python/{timer => pyalarm} | 8 ++------ 3 files changed, 11 insertions(+), 7 deletions(-) create mode 100755 scripts/pyalarm rename scripts/python/{timer => pyalarm} (55%) diff --git a/scripts/bgit b/scripts/bgit index 84d7321f..f540401c 100755 --- a/scripts/bgit +++ b/scripts/bgit @@ -292,8 +292,13 @@ else echo "(doesn't apply to gpg or ssh)${txtwhite}" git config credential.helper 'cache --timeout=3600'; git config advice.addEmptyPathspec false; - git add $modified $newfiles ; + git add $modified $newfiles; fi + + if [[ $deleted ]] ; then + git rm $deleted; + fi + # commits the user's message (multi-word supported) git commit -m "$gitmoji $cmessage" ; diff --git a/scripts/pyalarm b/scripts/pyalarm new file mode 100755 index 00000000..c6e50233 --- /dev/null +++ b/scripts/pyalarm @@ -0,0 +1,3 @@ +#!/bin/bash + +$HOME/scripts/python/pyalarm $1 &> /dev/null 2>&1 & diff --git a/scripts/python/timer b/scripts/python/pyalarm similarity index 55% rename from scripts/python/timer rename to scripts/python/pyalarm index 93b5946f..af956708 100755 --- a/scripts/python/timer +++ b/scripts/python/pyalarm @@ -9,9 +9,5 @@ from time import sleep parser = ArgumentParser() parser.add_argument("time", type=int) args = parser.parse_args() -print(f"Starting timer of {args.time} seconds") -for _ in range(args.time): - print(".", end="", flush=True) - sleep(1) -# print("Done!") -subprocess.call(["notify-send", "Done!"]) +sleep(args.time) +subprocess.call(["notify-send", "Time's Up!!",])