-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
greetings.sh
executable file
·46 lines (42 loc) · 1.35 KB
/
greetings.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#-----------------------------------------------------------------------------------
# Greetings function
#-----------------------------------------------------------------------------------
#-------------------------check greetings by time -----------------------------------
f3=$(date +'%p')
if [ $f3 == 'AM' ]
then
#--------------------------------------------------------------------------
espeak " Gouvd morning $1" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
echo " "
echo " Good Morning $1 "
else
f=$(date +'%I')
if [ $f -lt 04 ]
then
#--------------------------------------------------------------------------
espeak " Gouvd After noon $1" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
echo " "
echo " Good Afternoon $1 "
else if [ $f -lt 08 ]
then
#--------------------------------------------------------------------------
espeak " Gouvd Evening $1" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
echo " "
echo " Good Evening $1 "
else
#--------------------------------------------------------------------------
espeak " Gouvd Night$1" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
echo " "
echo " Good Night $1 "
fi
fi
fi
#-------------------------------------------------------------------------------------