-
Notifications
You must be signed in to change notification settings - Fork 25
/
manpage.1.TEMPLATE
412 lines (411 loc) · 6.35 KB
/
manpage.1.TEMPLATE
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
.\" (C) Copyright 2014-%%BUILD_YEAR%% Todd Harbour <[email protected]>
.
.TH RATSLAP "1" "%%BUILD_MONTH%% %%BUILD_YEAR%%" "ratslap %%APP_VERSION%%" "User Commands"
.
.
.
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.
.
.
.SH NAME
ratslap \- configuration tool for Logitech mice (currently only G300/G300S)
.
.
.
.SH SYNOPSIS
.B ratslap \-h|\-\-help
.br
.B ratslap \-V|\-\-version
.br
.B ratslap \-\-listkeys
.br
.B ratslap \-s|\-\-select
.I MODE
.br
.B ratslap \-p|\-\-print
.I MODE
.br
.B ratslap \-m|\-\-modify
.IR MODIFY_OPTIONS ...
.
.
.
.SH DESCRIPTION
.I RatSlap
aims to provide a way to configure configurable Logitech mice from within
Linux.
.PP
The Logitech G300/G300s has 3 button modes. For each of these modes, you can
assign an LED colour, report rate (speed at which the mouse communicates with
the computer), DPI setting(s) and button/key combinations.
.PP
For a list of available keys and buttons you can bind each mouse button to, run
.I ratslap
with the
.B \-\-listkeys
option.
.PP
NOTE: You cannot remap the scrollwheel. These generate button 4 (up) and 5
(down) and cannot be changed.
.PP
Most
.I OPTIONS
below can be chained, such as:
.RS
.PP
.B ratslap \-p
F3
.B \-m
F4
.B \-c
blue
.B \-s
F4
.RE
.PP
The above command would print out
.BR F3 ;
select
.B F4
for modification and change it's LED colour to
.BR blue ;
then select
.B F4
as the current mode.
.PP
This is most useful when you want to configure more than one mode at once, such
as restoring a specific state for the entire mouse.
.
.
.
.SH OPTIONS
.I RatSlap
more or less follows the usual GNU command line syntax, with long options
starting with two dashes (`\-'), and short with one.
.
.TP
.PD 0
.B \-h
.TP
.PD
.B \-\-help
Show summary of options.
.
.TP
.PD 0
.B \-V
.TP
.PD
.B \-\-version
Show version of program.
.
.TP
.B \-\-listkeys
Lists all possible modifiers, buttons and keys for assignment.
.
.TP
.PD 0
.BI \-s " MODE"
.TP
.PD
.BI \-\-select " MODE"
Switches to
.IR MODE .
Valid
.IR MODE s
are "F3", "F4" and "F5" (case insensative).
.
.TP
.PD 0
.BI \-p " MODE"
.TP
.PD
.BI \-\-print " MODE"
Prints out
.IR MODE 's
current button mapping.
.
.TP
.PD 0
.BI \-m " MODE"
.TP
.PD
.BI \-\-modify " MODE"
Modifies
.I MODE
using
.I MODIFY_OPTIONS
(see below)
.
.
.
.SH MODIFY_OPTIONS
The following options modify the current
.I MODE
selected for modification (using
\fB\-m\fR|\fB\-\-modify\fR, see above)
.
.TP
.PD 0
.BI \-r " RATE"
.TP
.PD
.BI \-\-rate " RATE"
Set the report rate of the mouse to
.IR RATE .
Valid
.IR RATE s
are "125", "250", "500", "1000", measured in hertz (times per second).
.
.
.
.TP
.PD 0
.BI \-A " DPI"
.TP
.PD
.BI \-\-D1 " DPI"
Sets the DPI value for sensitivity level 1 to
.IR DPI .
Valid
.IR DPI s
range from 250 to 4000, at intervals of 250.
.
.
.
.TP
.PD 0
.BI \-B " DPI"
.TP
.PD
.BI \-\-D2 " DPI"
Sets the DPI value for sensitivity level 2 to
.IR DPI .
Valid
.IR DPI s
range from 250 to 4000, at intervals of 250.
.
.
.
.TP
.PD 0
.BI \-C " DPI"
.TP
.PD
.BI \-\-D3 " DPI"
Sets the DPI value for sensitivity level 3 to
.IR DPI .
Valid
.IR DPI s
range from 250 to 4000, at intervals of 250.
.
.
.
.TP
.PD 0
.BI \-D " DPI"
.TP
.PD
.BI \-\-D4 " DPI"
Sets the DPI value for sensitivity level 4 to
.IR DPI .
Valid
.IR DPI s
range from 250 to 4000, at intervals of 250.
.
.
.
.TP
.PD 0
.BI \-F " LEVEL"
.TP
.PD
.BI \-\-default\-dpi " LEVEL"
Selects which DPI sensitivity level (1\(en4) is the default.
.
.
.
.TP
.PD 0
.BI \-S " [DPI]"
.TP
.PD
.BI \-\-dpishift " [DPI]"
Enables the DPI shift function. If
.I DPI
is specified, also sets the shifted DPI to that value. Valid
.IR DPI s
range from 250 to 4000, at intervals of 250.
.
.
.
.TP
.PD 0
.B \-U
.TP
.PD
.B \-\-no\-dpishift
Disables the DPI shift function. The currently set value is not changed.
.
.
.
.TP
.PD 0
.BI \-c " COLOUR"
.TP
.PD 0
.BI \-\-colour " COLOUR"
.TP
.PD
.BI \-\-color " COLOUR"
Set the colour of the mouse to
.IR COLOUR .
Valid
.IR COLOUR s
are "BLACK" (off), "RED", "GREEN", "YELLOW", "BLUE", "MAGENTA", "CYAN" and
"WHITE" (case insensative).
.
.
.
.TP
.PD 0
.BI \-1 " KEYS"
.TP
.PD
.BI \-\-left " KEYS"
Binds mouse button 1 (the left mouse button) to
.IR KEYS .
.br
For a list of valid modifiers, keys and buttons that can be assigned, use the
.B \-\-listkeys
option.
.
.
.
.TP
.PD 0
.BI \-2 " KEYS"
.TP
.PD
.BI \-\-right " KEYS"
Binds mouse button 2 (the right mouse button) to
.IR KEYS .
.br
For a list of valid modifiers, keys and buttons that can be assigned, use the
.B \-\-listkeys
option.
.
.
.
.TP
.PD 0
.BI \-3 " KEYS"
.TP
.PD
.BI \-\-middle " KEYS"
Binds mouse button 3 (the middle mouse button) to
.IR KEYS .
.br
For a list of valid modifiers, keys and buttons that can be assigned, use the
.B \-\-listkeys
option.
.
.
.
.TP
.PD 0
.BI \-4 " KEYS"
.TP
.PD
.BI \-\-G4 " KEYS"
Binds mouse button 4 (the G4 mouse button) to
.IR KEYS .
.br
For a list of valid modifiers, keys and buttons that can be assigned, use the
.B \-\-listkeys
option.
.
.
.
.TP
.PD 0
.BI \-5 " KEYS"
.TP
.PD
.BI \-\-G5 " KEYS"
Binds mouse button 5 (the G5 mouse button) to
.IR KEYS .
.br
For a list of valid modifiers, keys and buttons that can be assigned, use the
.B \-\-listkeys
option.
.
.
.
.TP
.PD 0
.BI \-6 " KEYS"
.TP
.PD
.BI \-\-G6 " KEYS"
Binds mouse button 6 (the G6 mouse button) to
.IR KEYS .
.br
For a list of valid modifiers, keys and buttons that can be assigned, use the
.B \-\-listkeys
option.
.
.
.
.TP
.PD 0
.BI \-7 " KEYS"
.TP
.PD
.BI \-\-G7 " KEYS"
Binds mouse button 7 (the G7 mouse button) to
.IR KEYS .
.br
For a list of valid modifiers, keys and buttons that can be assigned, use the
.B \-\-listkeys
option.
.
.
.
.TP
.PD 0
.BI \-8 " KEYS"
.TP
.PD
.BI \-\-G8 " KEYS"
Binds mouse button 8 (the G8 mouse button) to
.IR KEYS .
.br
For a list of valid modifiers, keys and buttons that can be assigned, use the
.B \-\-listkeys
option.
.
.
.
.TP
.PD 0
.BI \-9 " KEYS"
.TP
.PD
.BI \-\-G9 " KEYS"
Binds mouse button 9 (the G9 mouse button) to
.IR KEYS .
.br
For a list of valid modifiers, keys and buttons that can be assigned, use the
.B \-\-listkeys
option.