-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
myReboot-Restart-Shutdown.js
50 lines (47 loc) · 996 Bytes
/
myReboot-Restart-Shutdown.js
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
/** Reboot, Restart, Shutdown, Screen **/
/** Vocal commands script **/
/** set partern in your language **/
/** @bugsounet **/
var recipe = {
transcriptionHooks: {
"GA_REBOOT": {
pattern: "reboot please",
command: "GA_REBOOT"
},
"GA_RESTART": {
pattern: "restart please",
command: "GA_RESTART"
},
"GA_SHUTDOWN": {
pattern: "shutdown please",
command: "GA_SHUTDOWN"
}
},
commands: {
"GA_REBOOT": {
soundExec: {
chime: "close",
},
shellExec: {
exec: "/usr/bin/myreboot"
}
},
"GA_RESTART": {
soundExec: {
chime: "close",
},
shellExec: {
exec: "/usr/local/bin/mirror restart"
}
},
"GA_SHUTDOWN": {
soundExec: {
chime: "close",
},
shellExec: {
exec: "/usr/bin/myshutdown"
}
}
}
}
exports.recipe = recipe // Don't remove this line.