diff --git a/config/settings/settings.cfg b/config/settings/settings.cfg index 94f08f7d..d6708f84 100644 --- a/config/settings/settings.cfg +++ b/config/settings/settings.cfg @@ -17,7 +17,7 @@ volume=200 enabled=False layout=en -['screen] +[screen] driver=linux [keyboard] diff --git a/src/fenrir-package/commands/commands/toggle_braille_enable.py b/src/fenrir-package/commands/commands/toggle_braille_enable.py new file mode 100644 index 00000000..f834bd0d --- /dev/null +++ b/src/fenrir-package/commands/commands/toggle_braille_enable.py @@ -0,0 +1,16 @@ +#!/bin/python + +class command(): + def __init__(self): + pass + def run(self, environment): + environment['braille']['enabled'] = not environment['braille']['enabled'] + if environment['braille']['enabled']: + environment['runtime']['outputManager'].presentText(environment, "braille enabled") + else: + environment['runtime']['outputManager'].presentText(environment, "braille disabled") + return environment + def setCallback(self, callback): + pass + def shutdown(self): + pass diff --git a/src/fenrir-package/commands/commands/toggle_sound_enable.py b/src/fenrir-package/commands/commands/toggle_sound_enable.py new file mode 100644 index 00000000..71f619c2 --- /dev/null +++ b/src/fenrir-package/commands/commands/toggle_sound_enable.py @@ -0,0 +1,16 @@ +#!/bin/python + +class command(): + def __init__(self): + pass + def run(self, environment): + environment['sound']['enabled'] = not environment['sound']['enabled'] + if environment['sound']['enabled']: + environment['runtime']['outputManager'].presentText(environment, "sound enabled") + else: + environment['runtime']['outputManager'].presentText(environment, "sound disabled") + return environment + def setCallback(self, callback): + pass + def shutdown(self): + pass diff --git a/src/fenrir-package/commands/commands/toggle_speech_enable.py b/src/fenrir-package/commands/commands/toggle_speech_enable.py new file mode 100644 index 00000000..013298a3 --- /dev/null +++ b/src/fenrir-package/commands/commands/toggle_speech_enable.py @@ -0,0 +1,16 @@ +#!/bin/python + +class command(): + def __init__(self): + pass + def run(self, environment): + environment['speech']['enabled'] = not environment['speech']['enabled'] + if environment['speech']['enabled']: + environment['runtime']['outputManager'].presentText(environment, "speech enabled") + else: + environment['runtime']['outputManager'].presentText(environment, "speech disabled") + return environment + def setCallback(self, callback): + pass + def shutdown(self): + pass