From 6c4869dbf755db4cfd3674265259b1a06d70a888 Mon Sep 17 00:00:00 2001 From: FivePixels Date: Wed, 16 Mar 2022 14:46:18 -0500 Subject: Add README, update gn script to remove ctrlc trap --- README | 4 ++++ gn.sh | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 README 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="" -- cgit v1.2.3