Cosmetic changes
This commit is contained in:
parent
e69f3f8025
commit
304c5268e4
1 changed files with 3 additions and 5 deletions
|
@ -3,11 +3,9 @@ AS=🌏
|
||||||
EU=🌍
|
EU=🌍
|
||||||
AM=🌎
|
AM=🌎
|
||||||
NIGHT="🌙"
|
NIGHT="🌙"
|
||||||
DAY="☀️ "
|
|
||||||
|
|
||||||
|
|
||||||
TZONES="America/Los_Angeles America/Denver America/New_York Europe/Amsterdam Asia/Tokyo Australia/Brisbane"
|
TZONES="America/Los_Angeles America/Denver America/New_York Europe/Amsterdam Asia/Tokyo Australia/Brisbane"
|
||||||
H=`date +%H`
|
H=`TZ=Europe/Amsterdam date +%H`
|
||||||
if (test $H -gt 2 -a $H -lt 9); then
|
if (test $H -gt 2 -a $H -lt 9); then
|
||||||
WORLD=$AS
|
WORLD=$AS
|
||||||
elif (test $H -gt 9 -a $H -lt 18); then
|
elif (test $H -gt 9 -a $H -lt 18); then
|
||||||
|
@ -21,7 +19,7 @@ function print_clock() {
|
||||||
TZ=$1
|
TZ=$1
|
||||||
H=$(TZ=$1 date +%H)
|
H=$(TZ=$1 date +%H)
|
||||||
COLOR=""
|
COLOR=""
|
||||||
if (test $H -gt 8 -a $H -lt 19); then
|
if (test $H -gt 8 -a $H -lt 18); then
|
||||||
echo -n $WORLD
|
echo -n $WORLD
|
||||||
COLOR="\033[1;33m"
|
COLOR="\033[1;33m"
|
||||||
else
|
else
|
||||||
|
@ -32,7 +30,7 @@ function print_clock() {
|
||||||
COLOR="\033[0;33m"
|
COLOR="\033[0;33m"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (test $H -gt 19 -a $H -lt 23); then
|
if (test $H -gt 17 -a $H -lt 23); then
|
||||||
COLOR="\033[0;36m"
|
COLOR="\033[0;36m"
|
||||||
fi
|
fi
|
||||||
echo -ne "${COLOR} $1\r\t\t\t\t: "
|
echo -ne "${COLOR} $1\r\t\t\t\t: "
|
||||||
|
|
Loading…
Reference in a new issue