From 3d5d048a4b15bcd88d6068a19b09828c6c07a1f8 Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 15 Aug 2016 01:41:47 +0200 Subject: [PATCH] upload stuff --- config/settings/settings.conf.chrys | 39 +++++++++++++++++++ .../{settings.storm => settings.conf.storm} | 4 +- .../commands/commands/foreward_keypress.py | 13 +++++++ 3 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 config/settings/settings.conf.chrys rename config/settings/{settings.storm => settings.conf.storm} (87%) create mode 100644 src/fenrir-package/commands/commands/foreward_keypress.py diff --git a/config/settings/settings.conf.chrys b/config/settings/settings.conf.chrys new file mode 100644 index 00000000..865b7cd4 --- /dev/null +++ b/config/settings/settings.conf.chrys @@ -0,0 +1,39 @@ +[sound] +enabled=True +driver=sox +theme=default +volume=1.0 + +[speech] +enabled=True +driver=speechd +rate=0.75 +pitch=0.5 +module=espeak +voice=de +language=de +volume=1.0 +autoReadIncomming=True + +[braille] +enabled=False +layout=en + +[screen] +driver=linux +screenUpdateDelay=0.4 + +[keyboard] +device=all +grabDevices=True +ignoreShortcuts=False +keyboardLayout=test +charEcho=True +charDeleteEcho=True +wordEcho=True +interruptOnKeyPress=False + +[general] +debugLevel=0 +punctuationLevel=1 +fenrirKeys=KEY_KP0 diff --git a/config/settings/settings.storm b/config/settings/settings.conf.storm similarity index 87% rename from config/settings/settings.storm rename to config/settings/settings.conf.storm index d0f47fd7..e84b1cc2 100644 --- a/config/settings/settings.storm +++ b/config/settings/settings.conf.storm @@ -10,8 +10,8 @@ driver=speechd rate=0.75 pitch=0.5 module=espeak -voice=en-us -language=en-us +voice=us +language=en volume=1.0 autoReadIncomming=True diff --git a/src/fenrir-package/commands/commands/foreward_keypress.py b/src/fenrir-package/commands/commands/foreward_keypress.py new file mode 100644 index 00000000..427b05e8 --- /dev/null +++ b/src/fenrir-package/commands/commands/foreward_keypress.py @@ -0,0 +1,13 @@ +#!/bin/python + +class command(): + def __init__(self): + pass + def run(self, environment): + environment['input']['keyForeward'] = True + environment['runtime']['outputManager'].presentText(environment, 'Foreward next keypress', interrupt=True) + return environment + def setCallback(self, callback): + pass + def shutdown(self): + pass