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