history
This commit is contained in:
		@@ -57,7 +57,7 @@ module=espeak
 | 
			
		||||
voice=
 | 
			
		||||
 | 
			
		||||
# Select the language you want fenrir to use.
 | 
			
		||||
language=english-us
 | 
			
		||||
language=de
 | 
			
		||||
 | 
			
		||||
# Read new text as it happens?
 | 
			
		||||
autoReadIncoming=True
 | 
			
		||||
@@ -82,7 +82,7 @@ device=AUTO
 | 
			
		||||
grabDevices=True
 | 
			
		||||
ignoreShortcuts=False
 | 
			
		||||
# the current shortcut layout located in /etc/fenrir/keyboard
 | 
			
		||||
keyboardLayout=desktop
 | 
			
		||||
keyboardLayout=test
 | 
			
		||||
# echo chars while typing.
 | 
			
		||||
charEcho=False
 | 
			
		||||
# echo deleted chars
 | 
			
		||||
@@ -95,8 +95,8 @@ interruptOnKeyPress=False
 | 
			
		||||
doubleTapDelay=0.2
 | 
			
		||||
 | 
			
		||||
[general]
 | 
			
		||||
debugLevel=3
 | 
			
		||||
punctuationLevel=some
 | 
			
		||||
debugLevel=0
 | 
			
		||||
punctuationLevel=Some
 | 
			
		||||
numberOfClipboards=10
 | 
			
		||||
# define the current fenrir key
 | 
			
		||||
fenrirKeys=KEY_KP0,KEY_META
 | 
			
		||||
 
 | 
			
		||||
@@ -1,113 +0,0 @@
 | 
			
		||||
[sound]
 | 
			
		||||
# Turn sound on or off:
 | 
			
		||||
enabled=True
 | 
			
		||||
 | 
			
		||||
# Select the driver used to play sounds, choices are generic and gstreamer.
 | 
			
		||||
# Sox is the default.
 | 
			
		||||
driver=generic
 | 
			
		||||
 | 
			
		||||
# 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
 | 
			
		||||
 | 
			
		||||
# Sound volume controls how loud the sounds for your chosen soundpack are.
 | 
			
		||||
# 0 is quietest, 1.0 is loudest.
 | 
			
		||||
volume=1.0
 | 
			
		||||
 | 
			
		||||
# shell commands for generic sound driver
 | 
			
		||||
# the folowing variable are substituded
 | 
			
		||||
# fenrirVolume = the current volume setting
 | 
			
		||||
# fenrirSoundFile = the soundfile for an soundicon
 | 
			
		||||
# fenrirFrequence = the frequence to play
 | 
			
		||||
# fenrirDuration = the duration of the frequence
 | 
			
		||||
# the following command is used for play a soundfile
 | 
			
		||||
genericPlayFileCommand=play -q -v fenrirVolume fenrirSoundFile
 | 
			
		||||
#the following command is used for generating a frequence beep
 | 
			
		||||
genericFrequencyCommand=play -q -v fenrirVolume -n -c1 synth fenrirDuration sine fenrirFrequence
 | 
			
		||||
 | 
			
		||||
[speech]
 | 
			
		||||
# Turn speech on or off:
 | 
			
		||||
enabled=True
 | 
			
		||||
 | 
			
		||||
# Select speech driver, options are speechd (default) or espeak:
 | 
			
		||||
driver=speechd
 | 
			
		||||
#driver=espeak
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# 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 for capital letters
 | 
			
		||||
capitalPitch=0.9
 | 
			
		||||
 | 
			
		||||
# 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
 | 
			
		||||
 | 
			
		||||
# Voice selects the varient you want to use, for example, f5 will use the female voice #5 in espeak,
 | 
			
		||||
# or if using the espeak module in speech-dispatcher. To find out which voices are available, consult the documentation provided with your chosen synthesizer.
 | 
			
		||||
voice=
 | 
			
		||||
 | 
			
		||||
# Select the language you want fenrir to use.
 | 
			
		||||
language=de
 | 
			
		||||
 | 
			
		||||
# Read new text as it happens?
 | 
			
		||||
autoReadIncoming=True
 | 
			
		||||
 | 
			
		||||
[braille]
 | 
			
		||||
#braille is not implemented yet
 | 
			
		||||
enabled=False
 | 
			
		||||
layout=en
 | 
			
		||||
 | 
			
		||||
[screen]
 | 
			
		||||
driver=linux
 | 
			
		||||
encoding=cp850
 | 
			
		||||
screenUpdateDelay=0.4
 | 
			
		||||
suspendingScreen=
 | 
			
		||||
autodetectSuspendingScreen=True
 | 
			
		||||
 | 
			
		||||
[keyboard]
 | 
			
		||||
driver=evdev
 | 
			
		||||
# filter input devices AUTO, ALL or a DEVICE NAME
 | 
			
		||||
device=AUTO
 | 
			
		||||
# gives fenrir exclusive access to the keyboard and let consume keystrokes. just disable on problems.
 | 
			
		||||
grabDevices=True
 | 
			
		||||
ignoreShortcuts=False
 | 
			
		||||
# the current shortcut layout located in /etc/fenrir/keyboard
 | 
			
		||||
keyboardLayout=test
 | 
			
		||||
# echo chars while typing.
 | 
			
		||||
charEcho=False
 | 
			
		||||
# echo deleted chars
 | 
			
		||||
charDeleteEcho=True
 | 
			
		||||
# echo word after pressing space
 | 
			
		||||
wordEcho=False
 | 
			
		||||
# interrupt speech on any keypress
 | 
			
		||||
interruptOnKeyPress=False
 | 
			
		||||
# timeout for double tap in sec
 | 
			
		||||
doubleTapDelay=0.2
 | 
			
		||||
 | 
			
		||||
[general]
 | 
			
		||||
debugLevel=1
 | 
			
		||||
punctuationLevel=Some
 | 
			
		||||
numberOfClipboards=10
 | 
			
		||||
# define the current fenrir key
 | 
			
		||||
fenrirKeys=KEY_KP0,KEY_META
 | 
			
		||||
timeFormat=%H:%M:%P
 | 
			
		||||
dateFormat=%A, %B %d, %Y
 | 
			
		||||
autoSpellCheck=True
 | 
			
		||||
spellCheckLanguage=en_US
 | 
			
		||||
 | 
			
		||||
[promote]
 | 
			
		||||
enabled=True
 | 
			
		||||
inactiveTimeoutSec=120
 | 
			
		||||
list=
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -43,6 +43,7 @@ class commandManager():
 | 
			
		||||
                    command_mod = importlib.util.module_from_spec(spec)
 | 
			
		||||
                    spec.loader.exec_module(command_mod)
 | 
			
		||||
                    self.env['commands'][section][fileName.upper()] = command_mod.command()
 | 
			
		||||
                    self.env['commandsIgnore'][section][fileName.upper()[fileName.upper().find('-')+1:]+'_IGNORE'] = False
 | 
			
		||||
                    self.env['commands'][section][fileName.upper()].initialize(self.env)
 | 
			
		||||
                    self.env['runtime']['debug'].writeDebugOut("Load command:" + section + "." + fileName.upper() ,debug.debugLevel.INFO)                    
 | 
			
		||||
                    
 | 
			
		||||
@@ -89,6 +90,10 @@ class commandManager():
 | 
			
		||||
        for command in sorted(self.env['commands'][trigger]):
 | 
			
		||||
            if self.commandExists(command, trigger):        
 | 
			
		||||
                try:
 | 
			
		||||
                    if self.env['commandsIgnore'][trigger][command[command.find('-')+1:]+'_IGNORE']:
 | 
			
		||||
                        self.env['commandsIgnore'][trigger][command[command.find('-')+1:]+'_IGNORE'] = False
 | 
			
		||||
                        self.env['runtime']['debug'].writeDebugOut("Ignore trigger.command:" + trigger + "." + command ,debug.debugLevel.INFO)                                
 | 
			
		||||
                    else:
 | 
			
		||||
                        self.env['runtime']['debug'].writeDebugOut("Executing trigger.command:" + trigger + "." + command ,debug.debugLevel.INFO)                    
 | 
			
		||||
                        self.env['commands'][trigger][command].run()                    
 | 
			
		||||
                except Exception as e:
 | 
			
		||||
 
 | 
			
		||||
@@ -43,3 +43,19 @@ commands = {
 | 
			
		||||
'onSwitchApplicationProfile':{
 | 
			
		||||
    },
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# used by the commandManager
 | 
			
		||||
commandsIgnore = {
 | 
			
		||||
'onInput':{
 | 
			
		||||
    },
 | 
			
		||||
'onScreenChanged':{
 | 
			
		||||
    },
 | 
			
		||||
'onScreenUpdate':{
 | 
			
		||||
    },
 | 
			
		||||
'onApplicationChange':{
 | 
			
		||||
    },   
 | 
			
		||||
'commands':{
 | 
			
		||||
    },
 | 
			
		||||
'onSwitchApplicationProfile':{
 | 
			
		||||
    },
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,7 @@ environment = {
 | 
			
		||||
'generalInformation': generalInformation.generalInformation,
 | 
			
		||||
'settings': settings.settings,
 | 
			
		||||
'commands': commands.commands,
 | 
			
		||||
'commandsIgnore': commands.commandsIgnore,
 | 
			
		||||
'commandInfo': commands.commandInfo,
 | 
			
		||||
'commandBuffer': commands.commandBuffer,
 | 
			
		||||
'input': inputEvent.input,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user