-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.toml
More file actions
67 lines (60 loc) · 1.82 KB
/
Copy pathconfig.toml
File metadata and controls
67 lines (60 loc) · 1.82 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[server]
addr = ":8787"
auth_token = "THIS_SHOULD_BE_UNIQUE_AND_SECRET"
debug = true
debug_modules = ["startech_kvm"]
[tls]
enabled = true
dir = "/home/tim/.config/fence-secrets/"
cert_file = "server.pem"
key_file = "server-key.pem"
ca_file = "ca.pem"
dns_names = ["freebsd.server"]
ip_addresses = ["10.2.2.20"]
# Drivers are registered in this order (supports multiple instances).
# If you are using Windows, look at the auto_discover settings below.
[[drivers]]
type = "startech_kvm"
short_name = "kvm"
baud = 115200
serial_device = "/dev/tty.usbserial-141140"
auto_discover = false
[[drivers]]
type = "blustream"
short_name = "matrix"
baud = 57600
serial_device = "/dev/tty.usbserial-141130"
auto_discover = false
##
## USB/Serial descovery
## https://unix.stackexchange.com/questions/361135/usb-serial-number-not-shown-with-lsusb-v-command
## https://devblogs.microsoft.com/windows-music-dev/the-importance-of-including-a-unique-iserialnumber-in-your-usb-midi-devices/
##
## In short, if you use auto discover, and you have multiple devices with the same VID/PID, you will need to make
## sure that you are running with a user that has the correct USB permissions.
##
# auto_discover = true
# usb_vid = 0x0403
# usb_pid = 0x6001
# serial_number = 0xDEADBEEF
[layout]
[[layout.computers]]
name = "work-computer"
right = [
{ driver = "kvm", action = "1" }
]
[[layout.computers]]
name = "home-computer"
left = [{ driver = "kvm", action = "2" }]
right = [
{ driver = "matrix", action = "01-03" },
{ driver = "matrix", action = "02-04" },
{ driver = "kvm", action = "4" }
]
[[layout.computers]]
name = "streaming-computer"
left = [
{ driver = "matrix", action = "01-01" },
{ driver = "matrix", action = "02-02" },
{ driver = "kvm", action = "2" }
]