From 36870bc04e76cbc685ca8ae45fb42a64ef7aa0bb Mon Sep 17 00:00:00 2001 From: G2-Games Date: Tue, 20 Sep 2022 12:09:39 -0500 Subject: [PATCH] Added toggle for update checker --- config.cfg | 1 + welcome.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.cfg b/config.cfg index f3369b9..a2c8ba6 100644 --- a/config.cfg +++ b/config.cfg @@ -10,6 +10,7 @@ greetings=("Welcome" "Greetings" "Hello" "Hi") # Add your own greetings! randgreeting="off" #< Turn the random greetings on (eg. "Hello , Hi ") twelvehour="on" #< Switch between 12 and 24 hour time (eg. 8:00 PM vs 20:00) rechargenotif="off" #< Notify that you should recharge if below 15% +updatecheck="on" #< Check for all updates, slows startup a bit flatpakupd="off" #< Check for flatpak updates, this slows startup down A LOT goodgreeting="on" #< Display greetings like "Good afternoon," else "It's afternoon" displaydate="off" #< Unused so far diff --git a/welcome.sh b/welcome.sh index e2aa6ac..ba6ad6e 100755 --- a/welcome.sh +++ b/welcome.sh @@ -210,6 +210,7 @@ greetings=("Welcome" "Greetings" "Hello" "Hi") # Add your own greetings! randgreeting="off" #< Turn the random greetings on (eg. "Hello , Hi ") twelvehour="on" #< Switch between 12 and 24 hour time (eg. 8:00 PM vs 20:00) rechargenotif="off" #< Notify that you should recharge if below 15% +updatecheck="on" #< Check for general updates flatpakupd="off" #< Check for flatpak updates, this slows startup down A LOT goodgreeting="on" #< Display greetings like "Good afternoon," else "It's afternoon" @@ -219,5 +220,5 @@ welcome greeting clock battery -updates +if [ "$updatecheck" = "on" ]; then updates; fi echo # Properly line break at the end