-
Notifications
You must be signed in to change notification settings - Fork 0
/
logid.cfg
230 lines (208 loc) · 6.09 KB
/
logid.cfg
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
// Logiops (Linux driver) configuration for Logitech MX Master 3.
// Includes gestures, smartshift, DPI.
// Tested on LogiOps v0.3.3 - GNOME 43.6 on Debian 12
// File location: /etc/logid.cfg
devices: ({
name: "Wireless Mouse MX Master 3";
// Properties
smartshift: {
on: true;
threshold: 15;
};
hiresscroll: {
hires: true;
invert: false;
target: false;
};
dpi: 800; // max=4000
// Functions
buttons: (
// Forward button
{
cid: 0x56;
action = {
type: "Gestures";
gestures: (
{
direction: "None";
mode: "OnRelease";
action = {
type: "Keypress";
keys: [ "KEY_FORWARD" ]; // Tapping Forward Button -> Default behaviour, moves forward
}
},
{
direction: "Up";
mode: "OnInterval";
interval: 25;
action = {
type: "Keypress";
keys: [ "KEY_RIGHTBRACE" ]; // Dragging Forward Button Upwards -> Sends the "Right Bracket" key as input once per 25pixels, enlarges brush size in Photoshop
}
},
{
direction: "Down";
mode: "OnInterval";
interval: 25;
action = {
type: "Keypress";
keys: [ "KEY_LEFTBRACE" ]; // Dragging Forward Button Downwards -> Sends the "Left Bracket" key as input once per 25pixels, reduces brush size in Photoshop
}
},
{
direction: "Right";
mode: "OnRelease";
action = {
type: "Keypress";
keys: [ "KEY_END" ]; // Dragging Forward button Rightwards -> Sends the "End" key as input, moves cursor to end of line
}
},
{
direction: "Left";
mode: "OnRelease";
action = {
type: "Keypress";
keys: [ "KEY_HOME" ]; // Dragging Forward Button Leftwards -> Sends the "Home" key as input, moves cursor to beggining of line
}
}
);
};
},
// Back button
{
cid: 0x53;
action = {
type: "Gestures";
gestures: (
{
direction: "None";
mode: "OnRelease";
action = {
type: "Keypress";
keys: [ "KEY_BACK" ]; // Tapping Back Button -> Default behaviour, moves backwards
}
},
{
direction: "Up";
mode: "OnInterval";
interval: 50;
action = {
type: "Keypress";
keys: [ "KEY_KP8" ]; // Dragging Back Button Upwards -> Sends the "Num8" key as input once per 50pixels, useful for blender
}
},
{
direction: "Down";
mode: "OnInterval";
interval: 50;
action = {
type: "Keypress";
keys: [ "KEY_KP2" ]; // Dragging Back Button Downwards -> Sends the "Num2" key as input once per 50pixels, useful for blender
}
},
{
direction: "Left";
mode: "OnInterval";
interval: 50;
action = {
type: "Keypress";
keys: [ "KEY_KP4" ]; // Dragging Back Button Leftwards -> Sends the "Num4" key as input once per 50pixels, useful for blender
}
},
{
direction: "Right";
mode: "OnInterval";
interval: 50;
action = {
type: "Keypress";
keys: [ "KEY_KP6" ]; // Dragging Back Button Rightwards -> Sends the "Num6" key as input once per 50pixels, useful for blender
}
}
);
};
},
// Gesture button (hold and move)
{
cid: 0xc3;
action = {
type: "Gestures";
gestures: (
{
direction: "None";
mode: "OnRelease";
action = {
type: "Keypress";
keys: [ "KEY_PLAYPAUSE" ]; // Tapping Gesture Button -> Toggles media playback
}
},
{
direction: "Right";
mode: "OnRelease";
action = {
type: "Keypress";
keys: [ "KEY_NEXTSONG" ]; // Dragging Gesture Button Rightwards -> Plays next media in list/queue
}
},
{
direction: "Left";
mode: "OnRelease";
action = {
type: "Keypress";
keys: [ "KEY_PREVIOUSSONG" ]; // Dragging Gesture Button Leftwards -> Plays previous media in list/queue
}
},
{
direction: "Up";
mode: "onInterval";
interval: 50;
action = {
type: "Keypress";
keys: [ "KEY_VOLUMEUP" ]; // Dragging Gesture Button Upwards -> Raises the volume one step per 50pixels
}
},
{
direction: "Down";
mode: "OnInterval";
interval: 50;
action = {
type: "Keypress";
keys: [ "KEY_VOLUMEDOWN" ]; // Dragging Gesture Button Downwards -> Lowers the volume one step per 50pixels
}
}
);
};
},
// Top button
{
cid: 0xc4;
action = {
type: "Gestures";
gestures: (
{
direction: "None";
mode: "OnRelease";
action = {
type: "ToggleSmartShift"; // Tapping Top Button -> Toggles SmartShift
}
},
{
direction: "Up";
mode: "OnRelease";
action = {
type: "ChangeDPI"; // Dragging Top Button Upwards -> Raises DPI in increments of 800 points
inc: 800,
}
},
{
direction: "Down";
mode: "OnRelease";
action = {
type: "ChangeDPI"; // Dragging Top Button Downwards -> Lowers DPI in increments of 800 points
inc: -800,
}
}
);
};
}
);
});