From 7d6e1008a5aa448013d2e23718aeb01c962abc77 Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 12 Jul 2016 23:12:49 +0200 Subject: [PATCH] add first trigger --- .../commands/onScreenChanged/10000-shut_up.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/fenrir-package/commands/onScreenChanged/10000-shut_up.py diff --git a/src/fenrir-package/commands/onScreenChanged/10000-shut_up.py b/src/fenrir-package/commands/onScreenChanged/10000-shut_up.py new file mode 100644 index 00000000..624e1868 --- /dev/null +++ b/src/fenrir-package/commands/onScreenChanged/10000-shut_up.py @@ -0,0 +1,13 @@ +#!/bin/python + +class command(): + def __init__(self): + pass + def run(self, environment): + if environment['screenData']['newTTY'] != environment['screenData']['oldTTY']: + environment['runtime']['speechDriver'].cancel() + return environment + def setCallback(self, callback): + pass + def shutdown(self): + pass