make i runable again and make autodetecto of X working
This commit is contained in:
parent
a886357481
commit
cb1feb35ae
@ -1,56 +1,21 @@
|
|||||||
[sound]
|
[sound]
|
||||||
# Turn sound on or off:
|
|
||||||
enabled=True
|
enabled=True
|
||||||
|
|
||||||
# Select the driver used to play sounds, choices are sox and gstreamer.
|
|
||||||
# Sox is the default.
|
|
||||||
driver=sox
|
driver=sox
|
||||||
|
|
||||||
# Sound themes. This is the pack of sounds used for sound alerts.
|
|
||||||
# Sound packs may be located at /usr/share/sounds
|
|
||||||
# For system wide availability, or ~/.local/share/fenrir/sounds
|
|
||||||
# For the current user.
|
|
||||||
theme=default
|
theme=default
|
||||||
|
|
||||||
# Sound volume controls how loud the sounds for your chosen soundpack are.
|
|
||||||
# 0 is quietest, 1.0 is loudest.
|
|
||||||
volume=1.0
|
volume=1.0
|
||||||
|
|
||||||
[speech]
|
[speech]
|
||||||
# Turn speech on or off:
|
|
||||||
enabled=True
|
enabled=True
|
||||||
|
|
||||||
# Select speech driver, options are speechd (default) or espeak:
|
|
||||||
driver=speechd
|
driver=speechd
|
||||||
#driver=espeak
|
rate=0.75
|
||||||
|
|
||||||
|
|
||||||
# The rate selects how fast fenrir will speak. Options range from 0, slowest, to 1.0, fastest.
|
|
||||||
rate=0.45
|
|
||||||
|
|
||||||
# Pitch controls the pitch of the voice, select from 0, lowest, to 1.0, highest.
|
|
||||||
pitch=0.5
|
pitch=0.5
|
||||||
|
|
||||||
# Volume controls the loudness of the voice, select from 0, quietest, to 1.0, loudest.
|
|
||||||
volume=1.0
|
|
||||||
|
|
||||||
# Module is used for speech-dispatcher, to select the speech module you want to use.
|
|
||||||
# Consult speech-dispatcher's configuration and help ti find out which modules are available.
|
|
||||||
# The default is espeak.
|
|
||||||
module=espeak
|
module=espeak
|
||||||
|
voice=de
|
||||||
# Voice selects the varient you want to use, for example, f5 will use the female voice #5 in espeak,
|
language=de
|
||||||
# or if using the espeak module in speech-dispatcher. To find out which voices are available, consult the documentation provided with your chosen synthesizer.
|
volume=0.8
|
||||||
voice=
|
|
||||||
|
|
||||||
# Select the language you want fenrir to use.
|
|
||||||
language=english-us
|
|
||||||
|
|
||||||
# Read new text as it happens?
|
|
||||||
autoReadIncomming=True
|
autoReadIncomming=True
|
||||||
|
|
||||||
[braille]
|
[braille]
|
||||||
#braille is not implemented yet
|
|
||||||
enabled=False
|
enabled=False
|
||||||
layout=en
|
layout=en
|
||||||
|
|
||||||
@ -64,35 +29,27 @@ autodetectSuspendingScreen=False
|
|||||||
[keyboard]
|
[keyboard]
|
||||||
driver=evdev
|
driver=evdev
|
||||||
device=all
|
device=all
|
||||||
# gives fenrir exclusive access to the keyboard and let consume keystrokes. just disable on problems.
|
|
||||||
grabDevices=True
|
grabDevices=True
|
||||||
ignoreShortcuts=False
|
ignoreShortcuts=False
|
||||||
# the current shortcut layout located in /etc/fenrir/keyboard
|
keyboardLayout=test
|
||||||
keyboardLayout=desktop
|
charEcho=True
|
||||||
# echo chars while typing.
|
|
||||||
charEcho=False
|
|
||||||
# echo deleted chars
|
|
||||||
charDeleteEcho=True
|
charDeleteEcho=True
|
||||||
# echo word after pressing space
|
wordEcho=True
|
||||||
wordEcho=False
|
|
||||||
# interrupt speech on any keypress
|
|
||||||
interruptOnKeyPress=False
|
interruptOnKeyPress=False
|
||||||
# timeout for double tap in sec
|
# timeout for double tap in sec
|
||||||
doubleTapDelay=0.2
|
doubleTapDelay=0.2
|
||||||
|
|
||||||
[general]
|
[general]
|
||||||
debugLevel=0
|
debugLevel=1
|
||||||
punctuationLevel=1
|
punctuationLevel=1
|
||||||
numberOfClipboards=10
|
numberOfClipboards=10
|
||||||
# define the current fenrir key
|
|
||||||
fenrirKeys=KEY_KP0
|
fenrirKeys=KEY_KP0
|
||||||
timeFormat=%H:%M:%P
|
timeFormat=%H:%M:%P
|
||||||
|
dateFormat="%A, %B %d, %Y"
|
||||||
autoSpellCheck=True
|
autoSpellCheck=True
|
||||||
spellCheckLanguage=en_US
|
spellCheckLanguage=en_US
|
||||||
|
|
||||||
[promote]
|
[promote]
|
||||||
enabled=True
|
enabled=True
|
||||||
inactiveTimeoutSec=120
|
inactiveTimeoutSec=120
|
||||||
list=
|
list=chrys,test
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,55 +0,0 @@
|
|||||||
[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=0.8
|
|
||||||
autoReadIncomming=True
|
|
||||||
|
|
||||||
[braille]
|
|
||||||
enabled=False
|
|
||||||
layout=en
|
|
||||||
|
|
||||||
[screen]
|
|
||||||
driver=linux
|
|
||||||
encoding=cp850
|
|
||||||
screenUpdateDelay=0.4
|
|
||||||
suspendingScreen=1,2
|
|
||||||
autodetectSuspendingScreen=False
|
|
||||||
|
|
||||||
[keyboard]
|
|
||||||
driver=evdev
|
|
||||||
device=all
|
|
||||||
grabDevices=True
|
|
||||||
ignoreShortcuts=False
|
|
||||||
keyboardLayout=test
|
|
||||||
charEcho=True
|
|
||||||
charDeleteEcho=True
|
|
||||||
wordEcho=True
|
|
||||||
interruptOnKeyPress=False
|
|
||||||
# timeout for double tap in sec
|
|
||||||
doubleTapDelay=0.2
|
|
||||||
|
|
||||||
[general]
|
|
||||||
debugLevel=1
|
|
||||||
punctuationLevel=1
|
|
||||||
numberOfClipboards=10
|
|
||||||
fenrirKeys=KEY_KP0
|
|
||||||
timeFormat=%H:%M:%P
|
|
||||||
dateFormat="%A, %B %d, %Y"
|
|
||||||
autoSpellCheck=True
|
|
||||||
spellCheckLanguage=en_US
|
|
||||||
|
|
||||||
[promote]
|
|
||||||
enabled=True
|
|
||||||
inactiveTimeoutSec=120
|
|
||||||
list=chrys,test
|
|
@ -16,7 +16,7 @@ commandBuffer = {
|
|||||||
# used by the commandManager
|
# used by the commandManager
|
||||||
commandInfo = {
|
commandInfo = {
|
||||||
'currCommand': '',
|
'currCommand': '',
|
||||||
'lastCommandExecutionTime': time.time()
|
'lastCommandExecutionTime': time.time(),
|
||||||
'lastCommandRequestTime': time.time()
|
'lastCommandRequestTime': time.time()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,11 +4,12 @@ from utils import debug
|
|||||||
|
|
||||||
class screenManager():
|
class screenManager():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
pass
|
||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.autoIgnoreScreens = []
|
self.autoIgnoreScreens = []
|
||||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment,'screen', 'autodetectSuspendingScreen'):
|
if environment['runtime']['settingsManager'].getSettingAsBool(environment,'screen', 'autodetectSuspendingScreen'):
|
||||||
self.autoIgnoreScreens = environment['runtime']['screenDriver'].getIgnoreScreens()
|
self.autoIgnoreScreens = environment['runtime']['screenDriver'].getIgnoreScreens()
|
||||||
|
return environment
|
||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
|
|
||||||
@ -21,7 +22,7 @@ class screenManager():
|
|||||||
|
|
||||||
def isSuspendingScreen(self, environment):
|
def isSuspendingScreen(self, environment):
|
||||||
currScreen = environment['runtime']['screenDriver'].getCurrScreen()
|
currScreen = environment['runtime']['screenDriver'].getCurrScreen()
|
||||||
return (currScreen in \
|
return ((currScreen in \
|
||||||
environment['runtime']['settingsManager'].getSetting(environment,'screen', 'suspendingScreen').split(',')) or
|
environment['runtime']['settingsManager'].getSetting(environment,'screen', 'suspendingScreen').split(',')) or
|
||||||
(currScreen in self.autoIgnoreScreens)
|
(currScreen in self.autoIgnoreScreens))
|
||||||
|
|
||||||
|
@ -239,6 +239,7 @@ class settingsManager():
|
|||||||
if environment['runtime']['commandManager'] == None:
|
if environment['runtime']['commandManager'] == None:
|
||||||
environment['runtime']['commandManager'] = commandManager.commandManager()
|
environment['runtime']['commandManager'] = commandManager.commandManager()
|
||||||
environment = environment['runtime']['commandManager'].initialize(environment)
|
environment = environment['runtime']['commandManager'].initialize(environment)
|
||||||
|
|
||||||
if environment['runtime']['screenManager'] == None:
|
if environment['runtime']['screenManager'] == None:
|
||||||
environment['runtime']['screenManager'] = screenManager.screenManager()
|
environment['runtime']['screenManager'] = screenManager.screenManager()
|
||||||
environment = environment['runtime']['screenManager'].initialize(environment)
|
environment = environment['runtime']['screenManager'].initialize(environment)
|
||||||
|
Loading…
Reference in New Issue
Block a user