Repository navigation
Expand file tree
/
Copy pathconfig.example.toml
More file actions
194 lines (171 loc) · 7.06 KB
/
Copy pathconfig.example.toml
File metadata and controls
194 lines (171 loc) · 7.06 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# OpenLogi configuration example. Copy only the sections you need.
schema_version = 11
selected_device = "receiver:aabbccdd:slot:1"
[app_settings]
launch_at_login = true
check_for_updates = false
auto_install_updates = false
show_in_menu_bar = true
capture_mouse_events = true
# Mouse button profiles: "pointer" (default) or "focused".
mouse_profile_target = "pointer"
smooth_scroll = false
vertical_scroll_sensitivity = 14
auto_download_assets = true
asset_source = "automatic"
language = "en"
thumbwheel_sensitivity = 14
appearance = "system"
ui_scale = "normal"
device_view_mode = "grid"
# macOS only: "openlogi" (the signed icon) or "prism".
app_icon = "openlogi"
# macOS only: Previous / Next Desktop slide like a three-finger swipe (default
# true); false switches at once.
animate_desktop_switch = true
# Momentum scrolling for every mouse whose smooth_wheel is on. A device's own
# momentum_scrolling table overrides it.
[app_settings.momentum_scrolling]
enabled = true
glide_shape = "smooth"
# Cross-machine device handoff. Pairing writes the peer's pinned public key;
# manual addresses keep Flow usable across VPNs, VLANs, and overlay networks.
# [flow]
# enabled = true
# require_modifier = false
#
# [[flow.peers]]
# name = "work-laptop"
# public_key = "ed25519:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
# addresses = ["work-laptop.tailnet.example", "10.0.0.7"]
#
# [[flow.layout]]
# edge = "right"
# peer = "work-laptop"
#
# [[flow.devices]]
# key = "unit:0f1e2d3c"
# peer_channels = { self = 0, "work-laptop" = 1 }
[devices."receiver:aabbccdd:slot:1"]
custom_name = "Office mouse"
dpi = 1600
dpi_presets = [800, 1600, 3200]
thumbwheel_sensitivity = 20
invert_scroll = false
scroll_resolution = "high"
# Ease this mouse's main wheel in software (needs Accessibility on macOS).
smooth_wheel = true
[devices."receiver:aabbccdd:slot:1".bindings]
Back = "BrowserBack"
# Hold only the modifiers and tap the key once: the application switcher steps
# one window forward and stays open until the button is released.
Forward = { TapKeyHoldingModifiers = "Cmd+Tab" }
# Hold the whole chord for exactly as long as the physical button is held.
MiddleClick = { HoldShortcut = "Ctrl+Space" }
# Hold bare Cmd while the button is held; keys typed arrive modified.
WheelTiltLeft = { HoldModifier = "Cmd" }
# Release before 500 ms runs `short`; reaching 500 ms runs `long` once.
DpiToggle = { short = "ShowDesktop", long = "MissionControl" }
# On a mouse without a thumb wheel, hold Back and turn the main wheel to scroll
# sideways; a click that did not turn the wheel still runs `click`:
# Back = { click = "BrowserBack", wheel = "HorizontalScroll" }
# The thumb wheel's capacitive tap. Inert unless set here; the wheel also
# reports taps from incidental thumb contact.
Thumbwheel = "AppExpose"
[devices."receiver:aabbccdd:slot:1".bindings.GestureButton]
Click = "MissionControl"
Up = "MissionControl"
Down = "AppExpose"
Left = "PreviousDesktop"
Right = "NextDesktop"
[devices."receiver:aabbccdd:slot:1".per_app_bindings."com.microsoft.VSCode"]
Back = "Undo"
[devices."receiver:aabbccdd:slot:1".per_app_bindings."exe:sharex.exe"]
MiddleClick = { CustomShortcut = "F1" }
# `app:<alias>` names an application in `[apps]` below, so this profile applies
# to Chrome on every platform the alias lists. A key in the platform's own
# namespace, like the two above, wins over an alias for the same application.
[devices."receiver:aabbccdd:slot:1".per_app_bindings."app:chrome"]
Back = "PrevTab"
Forward = "NextTab"
[devices."receiver:aabbccdd:slot:1".action_ring]
enabled = true
haptics = true
[devices."receiver:aabbccdd:slot:1".action_ring.default.slots]
Top = { action = "Copy", icon = "Keyboard" }
Right = { action = { OpenApplication = { path = "/Applications/Safari.app", display_name = "Safari" } }, icon = "Applications" }
Bottom = { action = "ShowDesktop", label = "Desktop" }
[devices."receiver:aabbccdd:slot:1".lighting]
enabled = true
color = "ff0000"
brightness = 80
[devices."receiver:aabbccdd:slot:1".smartshift]
mode = "ratchet"
auto_disengage = 16
tunable_torque = 50
# This mouse glides longer than the app-wide default.
[devices."receiver:aabbccdd:slot:1".momentum_scrolling]
enabled = true
glide_ms = 600
# Put host-switch links on the keyboard's physical entry.
[devices."receiver:aabbccdd:slot:2"]
host_switch_targets = ["receiver:aabbccdd:slot:1"]
fn_lock = false
# Keyboard keys are named by their HID++ control: a catalog name such as
# `KeyScreenCapture`, or `control:0x<cid>` for any control `openlogi diag
# controls` lists as divertable. An unlisted key keeps its firmware function.
[devices."receiver:aabbccdd:slot:2".bindings]
KeySearch = "MissionControl"
KeyScreenCapture = "Sleep"
KeyCalculator = { OpenApplication = { path = "/System/Applications/Calculator.app", display_name = "Calculator" } }
"control:0x01f3" = { CustomShortcut = "Cmd+Shift+4" }
# A G-series keyboard's G-keys are OpenLogi's only once the device opts in;
# M1–M3 then switch G1–G5 between profiles ("profiles"), or every key above
# the row is a key of its own ("nine_buttons").
[devices."serial:G915EXAMPLE"]
g_key_owner = "openlogi"
gaming_key_mode = "profiles"
[devices."serial:G915EXAMPLE".bindings]
KeyG1 = "VolumeUp"
KeyG2 = "VolumeDown"
"M2:KeyG1" = "Copy"
"M2:KeyG2" = "Paste"
[devices."serial:G915EXAMPLE".g_key_profile_names]
M2 = "Work"
# Since schema 5 a device is keyed by what it *is* — `unit:<hex>` or
# `serial:<s>` — rather than by the route it was reached on, so its settings
# follow it between its receiver and a cable instead of splitting into two
# entries. `receiver:…` entries above are the pre-5 shape; they are folded onto
# an identity key the first time the device is seen online with the GUI running.
[devices."unit:6be9d300"]
dpi = 1600
# Every route this device has been seen on. The set of keys is also the index
# that identifies the device while it is asleep and only the route is known,
# which is why a route with nothing special about it is still written out as an
# empty table.
[devices."unit:6be9d300".links."receiver:aabbccdd:slot:3"]
# Capabilities as measured on one link. A device can genuinely expose different
# features per transport — a G502 LIGHTSPEED publishes hi-res wheel over its
# receiver and not over USB — so this is recorded per link, not per device.
[devices."unit:6be9d300".links."direct:046d:c08d".capabilities]
buttons = true
pointer = true
lighting = false
scroll_inversion = true
hires_wheel = false
# Settings deliberately made different on this link. Anything not overridden
# here falls through to the device-level value above.
[devices."unit:6be9d300".links."direct:046d:c08d".overrides]
dpi = 800
# Global function-key remapping, independent of a device.
[keyboard.bindings]
f1 = "MissionControl"
"shift+command+f5" = "ShowDesktop"
# Application aliases: one name for an application across platforms. Each
# platform field takes the identifiers OpenLogi reports there, one string or an
# array of them. Windows identifiers are lower-case paths or `exe:<filename>`.
[apps.chrome]
name = "Google Chrome"
macos = "com.google.Chrome"
linux = ["google-chrome", "Google-chrome"]
windows = "exe:chrome.exe"