mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 05:22:53 -05:00
Updated and streamlined script, added updater to install script
This commit is contained in:
parent
c4a0aa8899
commit
aeeac56c1f
2 changed files with 42 additions and 2 deletions
38
config.cfg
Normal file
38
config.cfg
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
#==================SETUP=================#
|
||||||
|
# Select which parts you want active by #
|
||||||
|
# commenting them out. For example, on a #
|
||||||
|
# desktop, disabling the battery message #
|
||||||
|
# is a good idea. You can also re-order #
|
||||||
|
# them to change how they display! #
|
||||||
|
#========================================#
|
||||||
|
|
||||||
|
greetings=("Welcome" "Greetings" "Hello" "Hi") # Add your own greetings!
|
||||||
|
randgreeting="off" #< Turn the random greetings on (eg. "Hello <user>, Hi <user>")
|
||||||
|
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%
|
||||||
|
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
|
||||||
|
|
||||||
|
#=========COLORS=======#
|
||||||
|
NCOL='\e[0m'
|
||||||
|
BOLD='\e[1m'
|
||||||
|
ITAL='\e[3m'
|
||||||
|
UNDR='\e[4m'
|
||||||
|
BLNK='\e[5m'
|
||||||
|
|
||||||
|
# Battery level colors
|
||||||
|
CRIT='\e[31m'
|
||||||
|
LOW='\e[33m'
|
||||||
|
NORM='\e[32m'
|
||||||
|
FULL='\e[3;4;92m'
|
||||||
|
|
||||||
|
TIME='\e[38;2;224;146;252;1m' # Clock color
|
||||||
|
DATE='\e[38;2;50;168;82;1m' # Future "Date" item color
|
||||||
|
USRC=$(randcolor) # Username color
|
||||||
|
|
||||||
|
# Greeting colors
|
||||||
|
NIGH='\e[38;2;200;107;209m'
|
||||||
|
MORN='\e[38;2;255;164;74m'
|
||||||
|
AFTN='\e[38;2;250;245;110m'
|
||||||
|
EVEN='\e[38;2;171;54;3m'
|
|
@ -1,4 +1,4 @@
|
||||||
version=0.3.0
|
version=1.0.0
|
||||||
|
|
||||||
#========Welcome=======#
|
#========Welcome=======#
|
||||||
welcome () {
|
welcome () {
|
||||||
|
@ -159,7 +159,7 @@ randcolor() {
|
||||||
# to modify it for a light one #
|
# to modify it for a light one #
|
||||||
cluma=0
|
cluma=0
|
||||||
loops=0
|
loops=0
|
||||||
while [[ $(printf %.0f $cluma) -le 100 ]] && [[ $loops -le 10 ]];
|
while [ $(printf %.0f $cluma) -le 100 ] && [ $loops -le 10 ];
|
||||||
do
|
do
|
||||||
cr=$((0 + $RANDOM % 255))
|
cr=$((0 + $RANDOM % 255))
|
||||||
crl=$(echo "$cr 0.299" | awk '{print $1 * $2}')
|
crl=$(echo "$cr 0.299" | awk '{print $1 * $2}')
|
||||||
|
@ -211,6 +211,8 @@ rechargenotif="off" #< Notify that you should recharge if below 15%
|
||||||
flatpakupd="off" #< Check for flatpak updates, this slows startup down A LOT
|
flatpakupd="off" #< Check for flatpak updates, this slows startup down A LOT
|
||||||
goodgreeting="on" #< Display greetings like "Good afternoon," else "It's afternoon"
|
goodgreeting="on" #< Display greetings like "Good afternoon," else "It's afternoon"
|
||||||
|
|
||||||
|
source config.cfg
|
||||||
|
|
||||||
welcome
|
welcome
|
||||||
greeting
|
greeting
|
||||||
clock
|
clock
|
||||||
|
|
Loading…
Reference in a new issue