Second pass on updating settings, missed a few the first go round.
This commit is contained in:
@@ -29,7 +29,7 @@ generic_play_file_command=play -q -v fenrirVolume fenrirSoundFile
|
|||||||
generic_frequency_command=play -q -v fenrirVolume -n -c1 synth fenrirDuration sine fenrirFrequence
|
generic_frequency_command=play -q -v fenrirVolume -n -c1 synth fenrirDuration sine fenrirFrequence
|
||||||
|
|
||||||
# Enable progress bar monitoring with ascending tones by default
|
# Enable progress bar monitoring with ascending tones by default
|
||||||
progressMonitoring=True
|
progress_monitoring=True
|
||||||
|
|
||||||
[speech]
|
[speech]
|
||||||
# Turn speech on or off:
|
# Turn speech on or off:
|
||||||
@@ -132,11 +132,11 @@ double_tap_timeout=0.2
|
|||||||
[general]
|
[general]
|
||||||
# Debug levels: 0=DEACTIVE, 1=ERROR, 2=WARNING, 3=INFO (most verbose)
|
# Debug levels: 0=DEACTIVE, 1=ERROR, 2=WARNING, 3=INFO (most verbose)
|
||||||
# For production use, WARNING (2) provides good balance of useful info without spam
|
# For production use, WARNING (2) provides good balance of useful info without spam
|
||||||
debugLevel=2
|
debug_level=2
|
||||||
# debugMode sets where the debug output should send to:
|
# debugMode sets where the debug output should send to:
|
||||||
# debugMode=File writes to debug_file (Default:/tmp/fenrir-PID.log)
|
# debugMode=File writes to debug_file (Default:/tmp/fenrir-PID.log)
|
||||||
# debugMode=Print just prints on the screen
|
# debugMode=Print just prints on the screen
|
||||||
debugMode=File
|
debug_mode=File
|
||||||
debug_file=
|
debug_file=
|
||||||
punctuation_profile=default
|
punctuation_profile=default
|
||||||
punctuation_level=some
|
punctuation_level=some
|
||||||
@@ -150,7 +150,7 @@ number_of_clipboards=50
|
|||||||
# used path for "export_clipboard_to_file"
|
# used path for "export_clipboard_to_file"
|
||||||
# $user is replaced by username
|
# $user is replaced by username
|
||||||
#clipboardExportPath=/home/$user/fenrirClipboard
|
#clipboardExportPath=/home/$user/fenrirClipboard
|
||||||
clipboardExportPath=/tmp/fenrirClipboard
|
clipboard_export_path=/tmp/fenrirClipboard
|
||||||
# Convert text emoticons like :) to descriptive text (e.g., "smiling face")
|
# Convert text emoticons like :) to descriptive text (e.g., "smiling face")
|
||||||
emoticons=True
|
emoticons=True
|
||||||
# Define the Fenrir modifier key(s) - used to trigger Fenrir commands
|
# Define the Fenrir modifier key(s) - used to trigger Fenrir commands
|
||||||
@@ -163,12 +163,12 @@ script_keys=KEY_COMPOSE
|
|||||||
# Default: %%I:%%M%%P (12-hour format, e.g., "06:38pm")
|
# Default: %%I:%%M%%P (12-hour format, e.g., "06:38pm")
|
||||||
# 24-hour format: %%H:%%M (e.g., "18:38")
|
# 24-hour format: %%H:%%M (e.g., "18:38")
|
||||||
# Common codes: %%I=12hr hour, %%H=24hr hour, %%M=minute, %%S=second, %%P=am/pm lowercase, %%p=AM/PM uppercase
|
# Common codes: %%I=12hr hour, %%H=24hr hour, %%M=minute, %%S=second, %%P=am/pm lowercase, %%p=AM/PM uppercase
|
||||||
timeFormat=%%I:%%M%%P
|
time_format=%%I:%%M%%P
|
||||||
# Date format using Python strftime codes
|
# Date format using Python strftime codes
|
||||||
# Default: %%A, %%B %%d, %%Y (e.g., "Tuesday, December 10, 2024")
|
# Default: %%A, %%B %%d, %%Y (e.g., "Tuesday, December 10, 2024")
|
||||||
# ISO format: %%Y-%%m-%%d (e.g., "2024-12-10")
|
# ISO format: %%Y-%%m-%%d (e.g., "2024-12-10")
|
||||||
# Common codes: %%A=weekday name, %%B=month name, %%d=day, %%Y=year with century, %%m=month number
|
# Common codes: %%A=weekday name, %%B=month name, %%d=day, %%Y=year with century, %%m=month number
|
||||||
dateFormat=%%A, %%B %%d, %%Y
|
date_format=%%A, %%B %%d, %%Y
|
||||||
# Automatically spell check words when reviewing character-by-character
|
# Automatically spell check words when reviewing character-by-character
|
||||||
auto_spell_check=True
|
auto_spell_check=True
|
||||||
# Language for spell checking (format: language_COUNTRY, e.g., en_US, en_GB, es_ES)
|
# Language for spell checking (format: language_COUNTRY, e.g., en_US, en_GB, es_ES)
|
||||||
@@ -187,7 +187,7 @@ command_path=
|
|||||||
# fenrirBlink = speak the blink attribute
|
# fenrirBlink = speak the blink attribute
|
||||||
# fenrirFont = the font name
|
# fenrirFont = the font name
|
||||||
# fenrirFontSize = the font size
|
# fenrirFontSize = the font size
|
||||||
attributeFormatString=Background fenrirBGColor,Foreground fenrirFGColor,fenrirUnderline,fenrirBold,fenrirBlink, Font fenrirFont,Fontsize fenrirFontSize
|
attribute_format_string=Background fenrirBGColor,Foreground fenrirFGColor,fenrirUnderline,fenrirBold,fenrirBlink, Font fenrirFont,Fontsize fenrirFontSize
|
||||||
# Automatically announce indentation level changes (useful for Python, YAML, etc.)
|
# Automatically announce indentation level changes (useful for Python, YAML, etc.)
|
||||||
auto_present_indent=False
|
auto_present_indent=False
|
||||||
# How to present indentation changes:
|
# How to present indentation changes:
|
||||||
@@ -196,7 +196,7 @@ auto_present_indent=False
|
|||||||
# 2 = speak only (just voice announcement)
|
# 2 = speak only (just voice announcement)
|
||||||
auto_present_indent_mode=1
|
auto_present_indent_mode=1
|
||||||
# Play a sound when text attributes (color, bold, etc.) change
|
# Play a sound when text attributes (color, bold, etc.) change
|
||||||
hasAttributes=True
|
has_attributes=True
|
||||||
# Shell to use for PTY emulation mode (empty = use system default shell)
|
# Shell to use for PTY emulation mode (empty = use system default shell)
|
||||||
# Examples: /bin/bash, /bin/zsh, /usr/bin/fish
|
# Examples: /bin/bash, /bin/zsh, /usr/bin/fish
|
||||||
shell=
|
shell=
|
||||||
@@ -216,7 +216,7 @@ driver=unixDriver
|
|||||||
# tcp port
|
# tcp port
|
||||||
port=22447
|
port=22447
|
||||||
# socket filepath
|
# socket filepath
|
||||||
socketFile=
|
socket_file=
|
||||||
# allow settings to overwrite
|
# allow settings to overwrite
|
||||||
enable_settings_remote=True
|
enable_settings_remote=True
|
||||||
# allow commands to be executed
|
# allow commands to be executed
|
||||||
@@ -226,15 +226,15 @@ enable_command_remote=True
|
|||||||
# Enable barrier detection - automatically detects table/box borders for improved navigation
|
# Enable barrier detection - automatically detects table/box borders for improved navigation
|
||||||
enabled=False
|
enabled=False
|
||||||
# Characters that represent left-side barriers/borders (for table/box detection)
|
# Characters that represent left-side barriers/borders (for table/box detection)
|
||||||
leftBarriers=│└┌─
|
left_barriers=│└┌─
|
||||||
# Characters that represent right-side barriers/borders (for table/box detection)
|
# Characters that represent right-side barriers/borders (for table/box detection)
|
||||||
rightBarriers=│┘┐─
|
right_barriers=│┘┐─
|
||||||
|
|
||||||
[review]
|
[review]
|
||||||
# Announce line breaks during review mode
|
# Announce line breaks during review mode
|
||||||
lineBreak=True
|
line_break=True
|
||||||
# Announce when reaching the end of screen during review
|
# Announce when reaching the end of screen during review
|
||||||
endOfScreen=True
|
end_of_screen=True
|
||||||
# Exit review mode when cursor position changes (e.g., when typing)
|
# Exit review mode when cursor position changes (e.g., when typing)
|
||||||
leave_review_on_cursor_change=True
|
leave_review_on_cursor_change=True
|
||||||
# Exit review mode when switching to a different TTY/screen
|
# Exit review mode when switching to a different TTY/screen
|
||||||
@@ -279,21 +279,21 @@ quick_menu=speech#rate;speech#pitch;speech#volume
|
|||||||
# For "[user@hostname ~] $" use: \[.*@.*\s.*\]\s*[$#>]\s*
|
# For "[user@hostname ~] $" use: \[.*@.*\s.*\]\s*[$#>]\s*
|
||||||
# For custom prompts ending with specific strings, use patterns like: .*your_prompt_ending$
|
# For custom prompts ending with specific strings, use patterns like: .*your_prompt_ending$
|
||||||
# For custom package manager prompts: .*your_package_manager.*\[[YyNn]/[YyNn]\].*
|
# For custom package manager prompts: .*your_package_manager.*\[[YyNn]/[YyNn]\].*
|
||||||
customPatterns=
|
custom_patterns=
|
||||||
|
|
||||||
# Specific prompt strings to match exactly (useful for very specific custom prompts)
|
# Specific prompt strings to match exactly (useful for very specific custom prompts)
|
||||||
# Format: exactMatches=prompt1,prompt2,prompt3
|
# Format: exact_matches=prompt1,prompt2,prompt3
|
||||||
# Examples:
|
# Examples:
|
||||||
# exactMatches=[storm@fenrir ~] $,[root@fenrir ~] #,Continue installation? [Y/n]
|
# exact_matches=[storm@fenrir ~] $,[root@fenrir ~] #,Continue installation? [Y/n]
|
||||||
exactMatches=
|
exact_matches=
|
||||||
|
|
||||||
[time]
|
[time]
|
||||||
# Enable automatic time announcements
|
# Enable automatic time announcements
|
||||||
enabled=False
|
enabled=False
|
||||||
# Announce the current time
|
# Announce the current time
|
||||||
presentTime=True
|
present_time=True
|
||||||
# Announce the date (only when it changes, e.g., at midnight)
|
# Announce the date (only when it changes, e.g., at midnight)
|
||||||
presentDate=True
|
present_date=True
|
||||||
# Announce time every N seconds (0 = disabled)
|
# Announce time every N seconds (0 = disabled)
|
||||||
# If delay_sec > 0, on_minutes is ignored
|
# If delay_sec > 0, on_minutes is ignored
|
||||||
delay_sec=0
|
delay_sec=0
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class command:
|
|||||||
def run(self):
|
def run(self):
|
||||||
clipboard_file_path = self.env["runtime"][
|
clipboard_file_path = self.env["runtime"][
|
||||||
"SettingsManager"
|
"SettingsManager"
|
||||||
].get_setting("general", "clipboardExportPath")
|
].get_setting("general", "clipboard_export_path")
|
||||||
clipboard_file_path = clipboard_file_path.replace(
|
clipboard_file_path = clipboard_file_path.replace(
|
||||||
"$user", self.env["general"]["curr_user"]
|
"$user", self.env["general"]["curr_user"]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class command:
|
|||||||
def run(self):
|
def run(self):
|
||||||
clipboard_file_path = self.env["runtime"][
|
clipboard_file_path = self.env["runtime"][
|
||||||
"SettingsManager"
|
"SettingsManager"
|
||||||
].get_setting("general", "clipboardExportPath")
|
].get_setting("general", "clipboard_export_path")
|
||||||
clipboard_file_path = clipboard_file_path.replace(
|
clipboard_file_path = clipboard_file_path.replace(
|
||||||
"$user", self.env["general"]["curr_user"]
|
"$user", self.env["general"]["curr_user"]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -18,17 +18,17 @@ class command:
|
|||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.env = environment
|
self.env = environment
|
||||||
# Use commandBuffer like other commands
|
# Use commandBuffer like other commands
|
||||||
if "progressMonitoring" not in self.env["commandBuffer"]:
|
if "progress_monitoring" not in self.env["commandBuffer"]:
|
||||||
# Check if progress monitoring should be enabled by default from
|
# Check if progress monitoring should be enabled by default from
|
||||||
# settings
|
# settings
|
||||||
try:
|
try:
|
||||||
default_enabled = self.env["runtime"][
|
default_enabled = self.env["runtime"][
|
||||||
"SettingsManager"
|
"SettingsManager"
|
||||||
].get_setting_as_bool("sound", "progressMonitoring")
|
].get_setting_as_bool("sound", "progress_monitoring")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# If setting doesn't exist, default to False
|
# If setting doesn't exist, default to False
|
||||||
default_enabled = False
|
default_enabled = False
|
||||||
self.env["commandBuffer"]["progressMonitoring"] = default_enabled
|
self.env["commandBuffer"]["progress_monitoring"] = default_enabled
|
||||||
self.env["commandBuffer"]["lastProgressTime"] = 0
|
self.env["commandBuffer"]["lastProgressTime"] = 0
|
||||||
self.env["commandBuffer"]["lastProgressValue"] = -1
|
self.env["commandBuffer"]["lastProgressValue"] = -1
|
||||||
|
|
||||||
@@ -40,12 +40,12 @@ class command:
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
# Check if commandBuffer exists
|
# Check if commandBuffer exists
|
||||||
if "progressMonitoring" not in self.env["commandBuffer"]:
|
if "progress_monitoring" not in self.env["commandBuffer"]:
|
||||||
self.env["commandBuffer"]["progressMonitoring"] = False
|
self.env["commandBuffer"]["progress_monitoring"] = False
|
||||||
self.env["commandBuffer"]["lastProgressTime"] = 0
|
self.env["commandBuffer"]["lastProgressTime"] = 0
|
||||||
self.env["commandBuffer"]["lastProgressValue"] = -1
|
self.env["commandBuffer"]["lastProgressValue"] = -1
|
||||||
|
|
||||||
if self.env["commandBuffer"]["progressMonitoring"]:
|
if self.env["commandBuffer"]["progress_monitoring"]:
|
||||||
self.stop_progress_monitoring()
|
self.stop_progress_monitoring()
|
||||||
self.env["runtime"]["OutputManager"].present_text(
|
self.env["runtime"]["OutputManager"].present_text(
|
||||||
_("Progress monitoring disabled"), interrupt=True
|
_("Progress monitoring disabled"), interrupt=True
|
||||||
@@ -57,17 +57,17 @@ class command:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def start_progress_monitoring(self):
|
def start_progress_monitoring(self):
|
||||||
self.env["commandBuffer"]["progressMonitoring"] = True
|
self.env["commandBuffer"]["progress_monitoring"] = True
|
||||||
self.env["commandBuffer"]["lastProgressTime"] = time.time()
|
self.env["commandBuffer"]["lastProgressTime"] = time.time()
|
||||||
self.env["commandBuffer"]["lastProgressValue"] = -1
|
self.env["commandBuffer"]["lastProgressValue"] = -1
|
||||||
# Don't control speech - let user decide with silence_until_prompt
|
# Don't control speech - let user decide with silence_until_prompt
|
||||||
|
|
||||||
def stop_progress_monitoring(self):
|
def stop_progress_monitoring(self):
|
||||||
self.env["commandBuffer"]["progressMonitoring"] = False
|
self.env["commandBuffer"]["progress_monitoring"] = False
|
||||||
# Don't control speech - progress monitor is beep-only
|
# Don't control speech - progress monitor is beep-only
|
||||||
|
|
||||||
def detect_progress(self, text):
|
def detect_progress(self, text):
|
||||||
if not self.env["commandBuffer"]["progressMonitoring"]:
|
if not self.env["commandBuffer"]["progress_monitoring"]:
|
||||||
return
|
return
|
||||||
|
|
||||||
# Skip progress detection if current screen looks like a prompt
|
# Skip progress detection if current screen looks like a prompt
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ class command:
|
|||||||
# Only run if progress monitoring is enabled
|
# Only run if progress monitoring is enabled
|
||||||
try:
|
try:
|
||||||
if (
|
if (
|
||||||
"progressMonitoring" in self.env["commandBuffer"]
|
"progress_monitoring" in self.env["commandBuffer"]
|
||||||
and self.env["commandBuffer"]["progressMonitoring"]
|
and self.env["commandBuffer"]["progress_monitoring"]
|
||||||
):
|
):
|
||||||
# Check if current line is a prompt - if so, reset progress
|
# Check if current line is a prompt - if so, reset progress
|
||||||
# state
|
# state
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ class RemoteManager:
|
|||||||
def export_clipboard(self):
|
def export_clipboard(self):
|
||||||
clipboard_file_path = self.env["runtime"][
|
clipboard_file_path = self.env["runtime"][
|
||||||
"SettingsManager"
|
"SettingsManager"
|
||||||
].get_setting("general", "clipboardExportPath")
|
].get_setting("general", "clipboard_export_path")
|
||||||
clipboard_file_path = clipboard_file_path.replace(
|
clipboard_file_path = clipboard_file_path.replace(
|
||||||
"$user", self.env["general"]["curr_user"]
|
"$user", self.env["general"]["curr_user"]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ settings_data = {
|
|||||||
"volume": 1.0,
|
"volume": 1.0,
|
||||||
"generic_play_file_command": "play -q -v fenrirVolume fenrirSoundFile",
|
"generic_play_file_command": "play -q -v fenrirVolume fenrirSoundFile",
|
||||||
"generic_frequency_command": "play -q -v fenrirVolume -n -c1 synth fenrirDuration sine fenrirFrequence",
|
"generic_frequency_command": "play -q -v fenrirVolume -n -c1 synth fenrirDuration sine fenrirFrequence",
|
||||||
|
"progress_monitoring": True,
|
||||||
},
|
},
|
||||||
"speech": {
|
"speech": {
|
||||||
"enabled": True,
|
"enabled": True,
|
||||||
@@ -53,6 +54,7 @@ settings_data = {
|
|||||||
"replace_undefined_punctuation_with_space": True,
|
"replace_undefined_punctuation_with_space": True,
|
||||||
"new_line_pause": True,
|
"new_line_pause": True,
|
||||||
"number_of_clipboards": 10,
|
"number_of_clipboards": 10,
|
||||||
|
"clipboard_export_path": "/tmp/fenrirClipboard",
|
||||||
"emoticons": True,
|
"emoticons": True,
|
||||||
"fenrir_keys": "KEY_KP0,KEY_META",
|
"fenrir_keys": "KEY_KP0,KEY_META",
|
||||||
"script_keys": "KEY_COMPOSE",
|
"script_keys": "KEY_COMPOSE",
|
||||||
|
|||||||
Reference in New Issue
Block a user