add intial toggle module commands
This commit is contained in:
parent
525cd14053
commit
e0aab47919
@ -17,7 +17,7 @@ volume=200
|
|||||||
enabled=False
|
enabled=False
|
||||||
layout=en
|
layout=en
|
||||||
|
|
||||||
['screen]
|
[screen]
|
||||||
driver=linux
|
driver=linux
|
||||||
|
|
||||||
[keyboard]
|
[keyboard]
|
||||||
|
@ -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
|
16
src/fenrir-package/commands/commands/toggle_sound_enable.py
Normal file
16
src/fenrir-package/commands/commands/toggle_sound_enable.py
Normal file
@ -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
|
16
src/fenrir-package/commands/commands/toggle_speech_enable.py
Normal file
16
src/fenrir-package/commands/commands/toggle_speech_enable.py
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user