-
Notifications
You must be signed in to change notification settings - Fork 7
/
mmserver.conf
135 lines (105 loc) · 2.94 KB
/
mmserver.conf
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
/*
This is a sample configuration file for mmserver. On startup, mmserver
searches for a configuration file in the following sequence:
1. ~/.mmserver/mmserver.conf
(This is the recommended installation location.)
2. /usr/share/mmserver/mmserver.conf
(If location 1 is not found but location 2 is found, mmserver will first
attempt to install the configuration file from location 2 to location 1.)
3. internal defaults
If mmserver is invoked with the path to a specific configuration file as the
first argument, the above search sequence is ignored and only the
user-specified configuration file is considered.
*/
server:
{
/* debug */
debug: false;
/* listen port */
port: 9099;
/* Avahi zeroconf networking */
zeroconf: true;
/* What platform to identify as. Valid values are MAC or WIN.
Only used by client to decide which modifier key symbols to display. */
platform: "MAC";
};
device:
{
/* restrict access to only this device id */
/* (connected device id and name are logged when debug mode is on) */
/*
id: [
"90a8d8fa8f8df......"
];
*/
/* password protect service */
password: "";
};
keyboard:
{
/* If set to false, all keyboard input from the Mobile Mouse app */
/* (including mode buttons that equate to keypresses) is ignored. */
enabled: true;
/* current keyboard layout */
layout: "iso-8859-1";
/* keyboard hotkeys; commands should end with "&" to avoid blocking. */
/* hotkey names appear as button labels in the Mobile Mouse app. */
/* The special value SYNC_CLIPBOARD can be used in place of a normal */
/* command string (here or in gestures or in mouse hotkeys) to tell */
/* the server to send the clipboard contents to the client app. */
hotkeys: {
key1: {
name: "Clipboard";
command: "SYNC_CLIPBOARD";
};
key2: {
name: "";
command: "";
};
key3: {
name: "";
command: "";
};
key4: {
name: "";
command: "";
};
};
};
mouse:
{
/* apply rudimentary mouse acceleration */
accelerate: true;
/* threshold pixels per microsecond speed for invoking mouse acceleration */
accelerationSpeed: 0.0004;
/* integer factor applied to mouse movements when accelerated */
accelerationFactor: 4;
/* allow scrolling horizontally as well as vertically */
horizontalScrolling: false;
/* maximum virtual scroll events per scroll motion; must be 1 or greater */
scrollMax: 1;
/* mouse hotkeys; key1 is invoked when the scroll pad is tapped. If no
key1 command is defined, a middle mouse button click is simulated.
As with keyboard hotkeys, commands should end with "&". */
hotkeys: {
key1: {
command: "";
};
key2: {
command: "";
};
};
};
gestures:
{
/* gesture values are interpreted like hotkey commands */
twofingerdoubletap: "";
threefingersingletap: "";
threefingerdoubletap: "";
fourfingerpinch: "";
fourfingerspread: "";
fourfingerswipeleft: "";
fourfingerswiperight: "";
fourfingerswipeup: "";
fourfingerswipedown: "";
};