summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFivePixels <o5pxels@gmail.com>2022-03-16 14:46:18 -0500
committerFivePixels <o5pxels@gmail.com>2022-03-16 14:46:18 -0500
commit6c4869dbf755db4cfd3674265259b1a06d70a888 (patch)
tree38c75220ccbd1037a6cf3a8eea1c30c69f2936a4
parent03f1c9da38316cfb3cd40151d359c658afde73b0 (diff)
downloadgn-6c4869dbf755db4cfd3674265259b1a06d70a888.tar.xz
gn-6c4869dbf755db4cfd3674265259b1a06d70a888.zip
Add README, update gn script to remove ctrlc trapmain
-rw-r--r--README4
-rwxr-xr-xgn.sh5
2 files changed, 4 insertions, 5 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..09feffa
--- /dev/null
+++ b/README
@@ -0,0 +1,4 @@
+gn script
+Dylan Bolger
+
+script that I run to make my computer go goodnight. will update all packages on machine and if currently playing a song, will wait until that song completes before shutting down. only supports spotify atm.
diff --git a/gn.sh b/gn.sh
index 8640e98..bd307ff 100755
--- a/gn.sh
+++ b/gn.sh
@@ -11,11 +11,6 @@ performUpdates() {
sudo pacman -Syu --noconfirm && yay -Sua
}
-handleCtrlC() {
- kill $pid
- exit 1
-}
-
pingForSongChanges() {
# https://gist.github.com/red-noise/9789642
title=""