-
Notifications
You must be signed in to change notification settings - Fork 0
/
friday.sh
66 lines (45 loc) · 1.54 KB
/
friday.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env bash
# Define variables
period=180
image_file_name='com.zoeira.vampeta-1.jpg'
# Start counting
count=1
# Start loop
while true
do
sleep $period
osascript -e 'set volume output volume 100'
say -v Luciana 'Sistema iniciando...'
osascript -e 'set volume output volume 100'
say -v Luciana 'Áreas vitais verificadas'
osascript -e 'set volume output volume 100'
say -v Luciana 'Podemos começar...'
osascript -e 'set volume output volume 100'
say -v Luciana 'Agora aquele vampetinho maroto.'
osascript -e 'set volume output volume 100'
# Download image
curl -s -o $image_file_name 'https://raw.githubusercontent.com/PedroFabrino/friday/master/vampeta.jpg'
# Set Desktop background
osascript -e 'set volume output volume 100'
osascript -e 'tell application "System Events" to set picture of every desktop to (do shell script "pwd") & "/'$image_file_name'"'
# Delete file
rm $image_file_name
# Say
osascript -e 'set volume output volume 100'
say -v Luciana 'Ciclo de Vampetização número' $count
sleep $period
osascript -e 'set volume output volume 100'
say -v Luciana 'Como assim amigo, está tentando se livrar de mim?'
sleep $period
osascript -e 'set volume output volume 100'
say -v Luciana 'Eu sei que você me ama!'
sleep $period
osascript -e 'set volume output volume 100'
say -v Luciana 'Ooooopa, queridoooo...'
sleep $period
osascript -e 'set volume output volume 100'
say -v Luciana 'Por hoje é só velhinho...'
sleep $period
# Increment
count=$((count+1))
done