-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtelex_Example_KeyPad.json
40 lines (37 loc) · 1.48 KB
/
telex_Example_KeyPad.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Configuration examples for piTelex
# 2023-03-15
# This is only a partial example. This can be copied in the main configuration file "telex.json"
#
{
"devices": {
# ...
# Module type "KeyPad"
# USB-KeyPad input for text shortcuts and test teletypes
# requirements: evdev (apt install python3-evdev)
"KeyPad1": {
"type": "KeyPad",
"enable": false,
"device_name": "KEYPAD", # part of device name to select a special keyboard/keypad device
"show_key_name": true,
"KEYS": {
"KEY_KP0": " ",
"KEY_KP1": "RY",
"KEY_KP2": "RYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRYRY",
"KEY_KP3": "",
"KEY_KP4": "{ABC}", # ESC-ABC -> text: "abcdefghijklmnopqrstuvwxyz1234567890"
"KEY_KP5": "{FOX}", # ESC-FOX -> text: "the quick brown fox jumps over the lazy dog"
"KEY_KP6": "{PELZE}",
"KEY_KP7": "{A1}",
"KEY_KP8": "{TEST}",
"KEY_KP9": "{LOREM}",
"KEY_KPDOT>": "#", # WRU
"KEY_KPPLUS": "{A}", # ESC-A -> online mode
"KEY_KPMINUS": "{Z}", # ESC-Z -> offline mode
"KEY_KPASTERISK": "{WB}", # ESC-WB -> ready for dialing
"KEY_KPSLASH>": "{ZZ}", # ESC-ZZ -> sleep mode
"KEY_KPENTER": "\\_" # <CR> <LF>
}
},
# ...
}
}