Debian Codegraph @

docs/fenrir.1

raw
1 .TH FENRIR 1 "2025" "Fenrir Screen Reader" "User Commands"
2 .SH NAME
3 fenrir \- A modern, modular console screen reader for Linux
4
5 .SH SYNOPSIS
6 .B fenrir
7 .RB [ \-h ]
8 .RB [ \-v ]
9 .RB [ \-f ]
10 .RB [ \-s
11 .IR SETTING-FILE ]
12 .RB [ \-o
13 .IR SECTION#SETTING=VALUE;.. ]
14 .RB [ \-d ]
15 .RB [ \-p ]
16 .RB [ \-x ]
17 .RB [ \-\-x11-window-id
18 .IR WINDOWID ]
19 .RB [ \-F ]
20 .RB [ \-i
21 .IR SCREEN ]
22
23 .SH DESCRIPTION
24 Fenrir is a modern, modular, flexible and fast console screen reader written in Python 3.
25 It provides spoken feedback for Linux console applications and supports Linux TTYs plus X11 terminal mode.
26
27 Fenrir features a modular driver architecture supporting multiple speech synthesizers, sound systems, input methods, and screen reading techniques. It includes advanced features like review mode, multiple clipboards, spell checking, bookmarks, and configurable key bindings.
28
29 .SH OPTIONS
30 .TP
31 .BR \-h ", " \-\-help
32 Show help message and exit.
33
34 .TP
35 .BR \-v ", " \-\-version
36 Show version information and exit.
37
38 .TP
39 .BR \-f ", " \-\-foreground
40 Run Fenrir in the foreground instead of as a daemon. Useful for debugging and testing.
41
42 .TP
43 .BR \-s ", " \-\-setting " " \fISETTING-FILE\fR
44 Path to a custom settings file. Default is /etc/fenrirscreenreader/settings/settings.conf for root and ~/.local/share/stormux/fenrirscreenreader/settings/settings.conf for regular-user saves.
45
46 .TP
47 .BR \-o ", " \-\-options " " \fISECTION#SETTING=VALUE;..\fR
48 Override settings file options. Format: SECTION#SETTING=VALUE;... (case sensitive).
49 Multiple settings can be separated by semicolons.
50
51 .TP
52 .BR \-d ", " \-\-debug
53 Enable debug mode. Debug information will be logged to /tmp/fenrir.log by
54 default. If another Fenrir debug instance is already using it, Fenrir uses
55 /tmp/fenrir2.log, /tmp/fenrir3.log, etc.
56
57 .TP
58 .BR \-p ", " \-\-print
59 Print debug messages to screen in addition to logging them.
60
61 .TP
62 .BR \-F ", " \-\-force-all-screens
63 Force Fenrir to respond on all screens, ignoring the ignore_screen setting. This temporarily overrides screen filtering for the current session.
64
65 .TP
66 .BR \-i ", " \-I ", " \-\-ignore-screen " \fISCREEN\fR"
67 Ignore specific screen(s). Can be used multiple times to ignore multiple screens. This is equivalent to setting ignore_screen in the configuration file and will be combined with any existing ignore settings.
68
69 .TP
70 .BR \-x ", " \-\-x11
71 Run in X11 terminal mode using PTY screen monitoring and X11 keyboard input scoped to the terminal window.
72
73 .TP
74 .BR \-\-x11-window-id " " \fIWINDOWID\fR
75 Use a specific X11 terminal window id for X11 terminal mode.
76
77 .SH KEY CONCEPTS
78
79 .SS Fenrir Key
80 The Fenrir Key is used to invoke screen reader commands. By default, the following keys act as Fenrir Keys:
81 .IP \[bu] 2
82 Insert
83 .IP \[bu] 2
84 Keypad Insert
85 .IP \[bu] 2
86 Meta (Super/Windows key)
87
88 .SS Keyboard Layouts
89 Fenrir supports two main keyboard layouts:
90 .IP \[bu] 2
91 .B Desktop Layout
92 \- Uses numeric keypad for navigation (recommended for desktop users)
93 .IP \[bu] 2
94 .B Laptop Layout
95 \- Alternative bindings for keyboards without numeric keypad
96
97 .SS Review Mode
98 Fenrir provides a virtual cursor that allows navigation around the screen without changing the text cursor position. This is essential for reviewing content without disrupting your work.
99
100 .SH BASIC COMMANDS
101
102 .SS Essential Navigation
103 .TP
104 .B Ctrl
105 Stop speech (shut up)
106
107 .TP
108 .B Fenrir + H
109 Toggle tutorial mode (interactive help system)
110
111 .TP
112 .B Fenrir + Q
113 Quit Fenrir
114
115 .TP
116 .B Fenrir + Keypad 5
117 Read current screen
118
119 .TP
120 .B Keypad 8
121 Read current line
122
123 .TP
124 .B Keypad 5
125 Read current word
126
127 .TP
128 .B Keypad 2
129 Read current character
130
131 .TP
132 .B Fenrir + T
133 Announce current time
134
135 .TP
136 .B Fenrir + S
137 Spell check current word
138
139 .SS Review Commands (Desktop Layout)
140 .TP
141 .B Keypad 7
142 Review previous line
143
144 .TP
145 .B Keypad 9
146 Review next line
147
148 .TP
149 .B Keypad 4
150 Review previous word
151
152 .TP
153 .B Keypad 6
154 Review next word
155
156 .TP
157 .B Keypad 1
158 Review previous character
159
160 .TP
161 .B Keypad 3
162 Review next character
163
164 .TP
165 .B Fenrir + Keypad dot
166 Exit review mode
167
168 .SS Clipboard Operations
169 .TP
170 .B Fenrir + C
171 Copy marked text to clipboard
172
173 .TP
174 .B Fenrir + V
175 Paste clipboard contents
176
177 .TP
178 .B Fenrir + Shift + C
179 Read current clipboard
180
181 .TP
182 .B Fenrir + X
183 Set mark (for text selection)
184
185 .TP
186 .B Fenrir + Shift + X
187 Announce marked text
188
189 .SH CONFIGURATION
190
191 .SS Settings File
192 The main configuration file is located at:
193 .IP \[bu] 2
194 .B /etc/fenrirscreenreader/settings/settings.conf
195 (system-wide installation)
196 .IP \[bu] 2
197 .B ~/.local/share/stormux/fenrirscreenreader/settings/settings.conf
198 (user-local settings)
199 .IP \[bu] 2
200 .B config/settings/settings.conf
201 (development/git version)
202
203 When Fenrir runs as a regular user, including fenrir -x, it loads the
204 user-local settings file if it exists. If it does not exist, Fenrir falls back
205 to the system settings file, but saving settings writes to the user-local path.
206 When Fenrir runs as root, settings save to the system-wide path by default.
207
208 User sound themes are loaded before system themes from
209 ~/.local/stormux/fenrir/sounds/. User scripts are loaded before configured
210 system scripts from ~/.local/stormux/fenrir/.
211
212 .SS Key Sections
213 .TP
214 .B [speech]
215 Configure speech synthesis (rate, pitch, volume, driver)
216
217 .TP
218 .B [sound]
219 Configure sound output and sound icons
220
221 .TP
222 .B [keyboard]
223 Configure input driver and keyboard layout
224
225 .TP
226 .B [screen]
227 Configure screen reading driver and ignored screens
228
229 .TP
230 .B [general]
231 General settings like punctuation, clipboard, and debug levels
232
233 .SS Driver Configuration
234 Fenrir uses a modular driver system:
235
236 .TP
237 .B Speech Drivers:
238 .IP \[bu] 4
239 speechdDriver - Speech-dispatcher (recommended)
240 .IP \[bu] 4
241 genericDriver - Command-line TTS (espeak, etc.)
242 .IP \[bu] 4
243 dectalkDriver - DECtalk-compatible serial hardware speech
244 .IP \[bu] 4
245 dectalkUsbDriver - Native Access Solutions DECtalk USB hardware speech
246 .IP \[bu] 4
247 litetalkDriver - LiteTalk-compatible serial hardware speech
248 .IP \[bu] 4
249 doubletalkDriver - DoubleTalk LT-compatible serial hardware speech
250 .IP \[bu] 4
251 tripletalkDriver - TripleTalk-compatible serial hardware speech
252 .IP \[bu] 4
253 debugDriver - Debug/testing
254
255 .TP
256 .B Sound Drivers:
257 .IP \[bu] 4
258 genericDriver - Sox-based (default)
259 .IP \[bu] 4
260 gstreamerDriver - GStreamer-based
261 .IP \[bu] 4
262 debugDriver - Debug/testing
263
264 .TP
265 .B Input Drivers:
266 .IP \[bu] 4
267 evdevDriver - Linux evdev (recommended for Linux)
268 .IP \[bu] 4
269 x11Driver - X11 terminal-scoped input for fenrir -x
270
271 .TP
272 .B Screen Drivers:
273 .IP \[bu] 4
274 vcsaDriver - Linux VCSA devices (TTY)
275 .IP \[bu] 4
276 ptyDriver - Terminal emulation
277
278 .TP
279 .B Remote Drivers:
280 .IP \[bu] 4
281 unixDriver - Unix socket remote control (recommended)
282 .IP \[bu] 4
283 tcpDriver - TCP socket remote control (localhost only)
284
285 .SH EXAMPLES
286
287 .TP
288 .B fenrir
289 Start Fenrir as a daemon with default settings.
290
291 .TP
292 .B fenrir -f -d
293 Run Fenrir in foreground with debug output.
294
295 .TP
296 .B fenrir -o "speech#rate=0.8;sound#volume=0.5"
297 Override speech rate and sound volume settings.
298
299 .TP
300 .B fenrir -F
301 Force Fenrir to work on all screens, ignoring ignore_screen settings.
302
303 .TP
304 .B fenrir -s /home/user/my-fenrir.conf
305 Use a custom configuration file.
306
307 .SH REMOTE CONTROL
308
309 Fenrir includes a powerful remote control system for automation and integration with external applications.
310
311 .SS Configuration
312 Enable remote control in /etc/fenrirscreenreader/settings/settings.conf or the user-local settings file:
313
314 .EX
315 [remote]
316 enable=True
317 driver=unixDriver
318 enable_settings_remote=True
319 enable_command_remote=True
320 .EE
321
322 .SS Using socat with Unix Sockets
323
324 .TP
325 .B Instance Discovery:
326 .EX
327 # List registered Fenrir instances and their socket paths
328 echo "ls" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
329 .EE
330
331 In X terminal mode (fenrir -x), multiple Fenrir instances can run at the
332 same time. Each instance has a private socket at
333 /tmp/fenrirscreenreader-<pid>.sock, and one instance may also own the
334 standard control socket. Use ls or "command ls" on the standard socket to
335 find the private socket for a specific instance. Commands sent to the standard
336 socket are handled by its owner when possible; otherwise they are forwarded to a
337 registered private socket, preferring the sender's Fenrir ancestor when one can
338 be found.
339
340 .TP
341 .B Basic Speech Control:
342 .EX
343 # Interrupt current speech
344 echo "command interrupt" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
345
346 # Speak custom text
347 echo "command say Hello, this is a test" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
348
349 # Temporarily disable speech
350 echo "command tempdisablespeech" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
351 .EE
352
353 .TP
354 .B Settings Control:
355 .EX
356 # Enable highlight tracking
357 echo "setting set focus#highlight=True" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
358
359 # Change speech rate
360 echo "setting set speech#rate=0.8" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
361
362 # Change punctuation level (none/some/most/all)
363 echo "setting set general#punctuation_level=all" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
364
365 # Voice and TTS control
366 echo "setting set speech#voice=en-us+f3" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
367
368 # Multiple settings at once
369 echo "setting set speech#rate=0.8;sound#volume=0.7;general#punctuation_level=most" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
370
371 # Reset all settings
372 echo "setting reset" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
373 .EE
374
375 .TP
376 .B Clipboard Operations:
377 .EX
378 # Add text to clipboard
379 echo "command clipboard Text to copy" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
380
381 # Export clipboard to file
382 echo "command exportclipboard" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
383 .EE
384
385 .SS Command Reference
386
387 .TP
388 .B Speech Commands:
389 .IP \[bu] 2
390 command say <text> - Speak the specified text
391 .IP \[bu] 2
392 command interrupt - Stop current speech
393 .IP \[bu] 2
394 command tempdisablespeech - Disable speech until next key press
395 .IP \[bu] 2
396 ls / list / command ls / command list - List registered Fenrir instances
397
398 .TP
399 .B Settings Commands:
400 .IP \[bu] 2
401 setting set <section>#<key>=<value> - Set configuration value
402 .IP \[bu] 2
403 setting reset - Reset all settings to defaults
404 .IP \[bu] 2
405 setting save [path] - Save current settings
406
407 .TP
408 .B Other Commands:
409 .IP \[bu] 2
410 command clipboard <text> - Add text to clipboard
411 .IP \[bu] 2
412 command window <x1> <y1> <x2> <y2> - Define window area
413 .IP \[bu] 2
414 command resetwindow - Reset to full screen
415 .IP \[bu] 2
416 command vmenu <menu_path> - Set virtual menu
417 .IP \[bu] 2
418 command resetvmenu - Reset virtual menu
419 .IP \[bu] 2
420 command quitapplication - Quit Fenrir
421
422 .SS Important Controllable Settings
423
424 .TP
425 .B Speech Control:
426 .IP \[bu] 2
427 general#punctuation_level=none/some/most/all - Punctuation verbosity
428 .IP \[bu] 2
429 speech#rate=0.1-1.0 - Speech rate
430 .IP \[bu] 2
431 speech#pitch=0.1-1.0 - Speech pitch
432 .IP \[bu] 2
433 speech#volume=0.1-1.0 - Speech volume
434 .IP \[bu] 2
435 speech#voice=voice_name - Voice selection
436 .IP \[bu] 2
437 speech#module=module_name - TTS module
438
439 .TP
440 .B Screen Control:
441 .IP \[bu] 2
442 screen#ignore_screen=1,2,3 - TTY screens to ignore
443 .IP \[bu] 2
444 focus#highlight=True/False - Follow text highlighting
445
446 .TP
447 .B Input Control:
448 .IP \[bu] 2
449 keyboard#char_echo_mode=0-2 - Character echo mode
450 .IP \[bu] 2
451 keyboard#word_echo=True/False - Word echo
452
453 .SH FILES
454 .TP
455 .B /etc/fenrirscreenreader/settings/settings.conf
456 Main configuration file
457
458 .TP
459 .B ~/.local/share/stormux/fenrirscreenreader/settings/settings.conf
460 User-local configuration file
461
462 .TP
463 .B /etc/fenrirscreenreader/keyboard/
464 Keyboard layout definitions
465
466 .TP
467 .B /etc/fenrirscreenreader/punctuation/
468 Punctuation level definitions
469
470 .TP
471 .B /usr/share/sounds/fenrirscreenreader/
472 System sound themes
473
474 .TP
475 .B ~/.local/stormux/fenrir/sounds/
476 User sound themes
477
478 .TP
479 .B ~/.local/stormux/fenrir/
480 User scripts
481
482 .TP
483 .B /tmp/fenrir.log
484 Debug log file
485
486 .TP
487 .B /run/fenrir.pid
488 Process ID file when running as daemon
489
490 .SH ENVIRONMENT
491 Fenrir respects standard Linux permissions and requires appropriate access to:
492 .IP \[bu] 2
493 /dev/input/* (for evdev input driver)
494 .IP \[bu] 2
495 /dev/uinput (for key injection)
496 .IP \[bu] 2
497 /dev/vcsa* (for VCSA screen driver)
498 .IP \[bu] 2
499 DBus system bus (for screen change detection)
500
501 .SH DEPENDENCIES
502 .SS Required
503 .IP \[bu] 2
504 Python 3.6 or later
505 .IP \[bu] 2
506 python3-evdev (for evdev input driver)
507 .IP \[bu] 2
508 python3-pyudev (for device detection)
509
510 .SS Recommended
511 .IP \[bu] 2
512 speech-dispatcher and python3-speechd (for speech)
513 .IP \[bu] 2
514 sox with opus support (for sound)
515 .IP \[bu] 2
516 espeak-ng (for speech synthesis)
517
518 .SS Optional
519 .IP \[bu] 2
520 python3-pyenchant and aspell-* (for spell checking)
521 .IP \[bu] 2
522 python3-daemonize (for daemon mode)
523 .IP \[bu] 2
524 pyalsaaudio (for ALSA volume control)
525
526 .SH SIGNALS
527 .TP
528 .B SIGTERM, SIGINT
529 Gracefully shut down Fenrir
530
531 .SH EXIT STATUS
532 .TP
533 .B 0
534 Success
535
536 .TP
537 .B 1
538 General error (configuration, permission, etc.)
539
540 .SH BUGS
541 Report bugs to the project maintainer or via the project repository.
542
543 .SH AUTHORS
544 .B Current maintainer:
545 Storm Dragon
546
547 .B Previous developer:
548 Chrys
549
550 .B Contributors:
551 Jeremiah and others
552
553 .SH COPYRIGHT
554 This software is licensed under the LGPL v3.
555
556 .SH SEE ALSO
557 .BR speechd (1),
558 .BR espeak (1),
559 .BR espeak-ng (1),
560 .BR sox (1)
561
562 .PP
563 Full documentation: https://git.stormux.org/storm/fenrir/wiki
564
565 .PP
566 Support: [email protected]