-
Notifications
You must be signed in to change notification settings - Fork 95
/
config.ini
593 lines (513 loc) · 13.9 KB
/
config.ini
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
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
# Configuration settings for:
# Linux Drivers for Huion Kamvas Tablets
# at github.com/joseluis/huion-linux-drivers
#
# 1 Main Configuration
# 2 Buttons Menus
# 3 Monitor Setups
# 4 Supported Tablets
#
# 1 MAIN CONFIGURATION:
# -----------------------------------------------------------------------------
[config]
# Your tablet. Find the supported models at the end of this file.
# Or use [tablet_debug] for just printing input info for sharing.
current_tablet = [tablet_gt221pro]
debug_mode = true
# Configure buttons
enable_buttons = true
pen_buttons_reverse = false
# Configure scrollbar
enable_scrollbar = true
scrollbar_reverse = false
# Multi Monitor Configuration
enable_multi_monitor = false
enable_xrandr = false
current_monitor_setup = [monitor_2]
# Calibration Data
enable_calibration = false
calibrate_min_x = 250
calibrate_max_x = 95250
calibrate_min_y = 300
calibrate_max_y = 53400
# Notifications
enable_notifications = true
buttons_notifications = true
scrollbar_notifications = false
# Miscellaneus
uclogic_bins = /usr/local/bin
refresh_rate_fps = 300
# Here you can select a menu with the appropriate number of buttons for your tablet. E.g.:
#start_menu = [menu_simple_4b]
#start_menu = [menu_main_10b]
start_menu =
#
# 2 BUTTONS MENUS:
# -----------------------------------------------------------------------------
[menu_4b_simple]
b0 = key Tab # hide interface
b1 = key r # rect select (gimp) & pick layer (krita)
b2 = key ctrl+z # undo
b3 = key ctrl+y # redo (gimp)
#
# scrollbar (up/down)
su = key ctrl+minus # zoom out (krita)
sd = key ctrl+plus # zoom in (krita)
# Main menu that links to other sub-menus (5 buttons)
[menu_5b_multi]
title = % Main Menu %
b0 = [menu_5b_krita]
b1 = [menu_5b_gimp]
b2 = key ctrl+s # save
b3 = key ctrl+o # open
b4 = key Escape
# scrollbar (up/down)
su = click 4 # mouse wheel up
sd = click 5 # mouse wheel down
[menu_5b_krita]
title = % Krita %
b0 = key Tab # hide interface
b1 = key r # pick layer
b2 = key ctrl+z # undo
b3 = key ctrl+shift+z # redo
b4 = [menu_5b_multi]
# scrollbar (up/down)
su = key ctrl+minus # zoom out
sd = key ctrl+plus # zoom in
[menu_5b_gimp]
title = % Gimp %
b0 = key Tab # hide interface
b1 = key r # rect select
b2 = key ctrl+z # undo
b3 = key ctrl+y # redo
b4 = [menu_5b_multi]
#
# scrollbar (up/down)
su = key minus # zoom out
sd = key plus # zoom in
[menu_10b_simple]
# upper buttons
b0 = key Tab # hide interface
b1 = key r # rect select (gimp) & pick layer (krita)
b2 = key ctrl+x # cut
b3 = key ctrl+c # copy
b4 = key ctrl+v # paste
# scrollbar (up/down)
su = key ctrl+minus # zoom out (krita)
sd = key ctrl+plus # zoom in (krita)
# lower buttons
b5 = key ctrl+z # undo
b6 = key ctrl+y # redo (gimp)
b7 = key ctrl+shift+z # redo (krita)
b8 = key 4 # turn left (krita)
b9 = key 6 # turn right (krita)
# Main menu that links to other sub-menus (10 buttons)
[menu_10b_main]
title = % Main Menu %
b0 = [menu_10b_krita]
b1 = [menu_10b_gimp]
b2 = [menu_10b_darktable]
b3 =
b4 =
#
su = click 4 # mouse wheel up
sd = click 5 # mouse wheel down
#
b5 = [menu_10b_vlc]
b6 =
b7 = key Escape
b8 = key Return
b9 = [menu_10b_main]
[menu_10b_krita]
# https://defkey.com/krita-shortcuts
title = % Krita %
b0 = [menu_10b_krita_draw]
b1 = [menu_10b_krita_edit]
b2 =
b3 = key Insert # new paint layer
b4 = key F5 # export
#
su = key ctrl+minus # zoom out
sd = key ctrl+plus # zoom in
#
b5 = key ctrl+alt+s # save incremental
b6 = key ctrl+s # save
b7 = key ctrl+w # close
b8 = key ctrl+o # open
b9 = [menu_10b_main]
[menu_10b_krita_draw]
title = % Krita - DRAW %
b0 = key Tab # hide interface
b1 = key b # draw tool
b2 = key p # select color
b3 = key ctrl+g # new group
b4 = key e # erase mode
#
su = key ctrl+minus # zoom out
sd = key ctrl+plus # zoom in
#
b5 = key ctrl+z # undo
b6 = key ctrl+shift+z # redo
b7 = key 4 # rotate left
b8 = key 6 # rotate right
b9 = [menu_10b_krita]
[menu_10b_krita_edit]
title = % Krita - EDIT %
b0 = key Tab # hide interface
b1 =
b2 = key ctrl+r # select square
b3 =
b4 =
#
su = key ctrl+minus # zoom out
sd = key ctrl+plus # zoom in
#
b5 = key ctrl+x # cut
b6 = key ctrl+c # copy
b7 = key ctrl+alt+c # copy merged
b8 = key ctrl+v # paste
b9 = [menu_10b_krita]
[menu_10b_gimp]
# http://www.gimpusers.com/gimp/hotkeys
title = % Gimp %
b0 = key Tab # hide interface
b1 = key p # paintbrush
b2 = key r # rect select
b3 = key c # clone
b4 = key shift+e # eraser
#
su = key minus # zoom out
sd = key plus # zoom in
#
b5 = key ctrl+z # undo
b6 = key ctrl+y # redo
b7 = key x # swap colors
b8 = key shift+r # rotate
b9 = [menu_10b_main]
[menu_10b_darktable]
# https://www.darktable.org/usermanual/en/shortcuts.html
title = % DarkTable %
b0 = key Tab # toggle side borders
b1 = key ctrl+h # toggle header
b2 =
b3 = key ctrl+e # export
b4 = key period # switch view
#
su = key alt+3 # zoom out
sd = key alt+2 # zoom in
#
b5 = key ctrl+z # undo
b6 = key ctrl+y # redo
b7 = key Return # image operations/clipping/commit
b8 = key Escape
b9 = [menu_10b_main]
[menu_10b_vlc]
# http://www.vlcshortcuts.com/
title = % VLC %
b0 = key f # fullscreen
b1 = key space # play / pause
b2 = key ctrl+Left # 60s rewind (1m)
b3 = key alt+Left # 10s rewind
b4 = key shift+Left # 3s rewind
#
su = key ctrl+Up # volume up
sd = key ctrl+Down # volume down
#
b5 = key shift+Right # 3s forward
b6 = key alt+Right # 10s forward
b7 = key ctrl+Right # 60s forward (1m)
b8 = key ctrl+s # save screenshot
b9 = [menu_10b_main]
[menu_11b_simple]
# Tablet HUION h320m
b0 = key Tab
b1 = key ctrl+s
b2 = key ctrl+r
#
b3 = key plus # up
b4 = key minus # down
b5 = key Return # center
b6 = key ctrl+z # left
b7 = key ctrl+y # right
#
b8 = key ctrl+c
b9 = key ctrl+x
b10 = key ctrl+v
[menu_14b_simple]
# upper buttons
b0 = key Tab # hide interface
b1 = key r # rect select (gimp) & pick layer (krita)
b2 = key ctrl+x # cut
b3 = key ctrl+c # copy
b4 = key ctrl+v # paste
b5 = key ctrl+z # undo
b6 = key ctrl+y # redo (gimp)
b7 = key ctrl+shift+z # redo (krita)
# scrollbar (up/down)
su = key ctrl+minus # zoom out (krita)
sd = key ctrl+plus # zoom in (krita)
# lower buttons
b8 = key 4 # turn left (krita)
b9 = key 6 # turn right (krita)
b10 =
b11 =
b12 =
b13 =
b14 =
#
# 3 MONITOR SETUPS
# -----------------------------------------------------------------------------
[monitor_1]
# The tablet is the only monitor
screen_1W = 1920
screen_1H = 1080
# global geometry
total_screen_width = ${screen_1W}
total_screen_height = ${screen_1H}
tablet_offset_x = 0
tablet_offset_y = 0
xrandr_output1 = --output HDMI-1 --mode ${screen_1W}x${screen_1H} --pos 0x0 --rotate normal
xrandr_args = ${xrandr_output1}
[monitor_1+1]
# 2 full HD monitors sharing the same view
screen_1W = 1920
screen_1H = 1080
screen_2W = 1920
screen_2H = 1080
# global geometry
total_screen_width = ${screen_1W}
total_screen_height = ${screen_1H}
tablet_offset_x = 0
tablet_offset_y = 0
xrandr_output1 = --output DVI-D-1 --mode ${screen_1W}x${screen_1H} --pos 0x0 --rotate normal
xrandr_output2 = --output VGA-1 --mode ${screen_2W}x${screen_2H} --pos 0x0 --rotate normal
xrandr_args = ${xrandr_output1} ${xrandr_output2}
[monitor_2]
# 2 monitors arranged horizontally
# screens widths and heights
screen_1W = 2560
screen_1H = 1440
screen_2W = 1920
screen_2H = 1080
# global geometry
total_screen_width = ${screen_1W} + ${screen_2W}
total_screen_height = ${screen_1H}
tablet_offset_x = ${screen_1W}
tablet_offset_y = 0
xrandr_output1 = --output HDMI-1 --mode ${screen_1W}x${screen_1H} --pos 0x0 --rotate normal
xrandr_output2 = --output DVI-D-1 --mode ${screen_2W}x${screen_2H} --pos ${screen_1W}x0 --rotate normal
xrandr_args = ${xrandr_output1} ${xrandr_output2}
[monitor_3]
# 3 monitors arranged horizontally
# screens widths and heights
screen_1W = 2560
screen_1H = 1440
screen_2W = 1920
screen_2H = 1080
screen_3W = 1920
screen_3H = 1080
# global geometry
total_screen_width = ${screen_1W} + ${screen_2W} + ${screen_3W}
total_screen_height = ${screen_1H}
tablet_offset_x = ${screen_1W} + ${screen_2W}
tablet_offset_y = 0
xrandr_output1 = --output HDMI-1 --mode ${screen_1W}x${screen_1H} --pos 0x0 --rotate normal
xrandr_output2 = --output DVI-D-1 --mode ${screen_2W}x${screen_2H} --pos ${screen_1W}x0 --rotate normal
xrandr_output3 = --output VGA-1 --mode ${screen_3W}x${screen_3H} --pos 4480x0 --rotate normal
xrandr_args = ${xrandr_output1} ${xrandr_output2} ${xrandr_output3}
[monitor_2+1]
# 3 monitors. But 2 and 3 share the same view
screen_1W = 2560
screen_1H = 1440
screen_2W = 1920
screen_2H = 1080
screen_3W = 1920
screen_3H = 1080
total_screen_width = ${screen_1W} + ${screen_2W}
total_screen_height = ${screen_1H}
tablet_offset_x = ${screen_1W}
tablet_offset_y = 0
xrandr_output1 = --output HDMI-1 --mode ${screen_1W}x${screen_1H} --pos 0x0 --rotate normal
xrandr_output2 = --output DVI-D-1 --mode ${screen_2W}x${screen_2H} --pos ${screen_1W}x0 --rotate normal
xrandr_output3 = --output VGA-1 --mode ${screen_3W}x${screen_3H} --pos ${screen_1W}x0 --rotate normal
xrandr_args = ${xrandr_output1} ${xrandr_output2} ${xrandr_output3}
#
# 4 SUPPORTED TABLETS:
# -----------------------------------------------------------------------------
[tablet_1060plus]
model_name = 1060 PLUS
pen_max_x = 50800
pen_max_y = 31750
pen_max_z = 8191
resolution = 5080
buttons = 12
[tablet_1060pro]
model_name = 1060 PRO
pen_max_x = 40000
pen_max_y = 25000
pen_max_z = 2047
resolution = 4000
buttons = 12
[tablet_dwh69]
model_name = DWH69
pen_max_x = 36000
pen_max_y = 22500
pen_max_z = 2047
resolution = 5080
buttons = 8
[tablet_gt116]
model_name = GT-116
screen = true
screen_width = 1920
screen_height = 1080
pen_max_x = 53580
pen_max_y = 33640
pen_max_z = 8191
resolution = 5080
buttons = 4
scrollbar = 1
pen_min_tilt = -60
pen_max_tilt = 60
[tablet_gt133]
model_name = GT-133
screen = true
screen_width = 1920
screen_height = 1080
pen_max_x = 58752
pen_max_y = 33048
pen_max_z = 8191
resolution = 5080
buttons = 5
scrollbar = 1
pen_min_tilt = -60
pen_max_tilt = 60
# Huion Kamvas Pro 16
[tablet_gt156]
model_name = GT-156
screen = true
screen_width = 1920
screen_height = 1080
pen_max_x = 68840
pen_max_y = 38720
pen_max_z = 8191
resolution = 5080
buttons = 8
scrollbar = 1
pen_min_tilt = -60
pen_max_tilt = 60
[tablet_gt156v2]
model_name = GT-156 v2
screen = true
screen_width = 1920
screen_height = 1080
pen_max_x = 68834
pen_max_y = 38710
pen_max_z = 8191
resolution = 5080
buttons = 14
scrollbar = 1
# alternative values (need more tests from people with this tablet)
# source https://github.com/joseluis/huion-linux-drivers/issues/47
# pen_max_x = 68665
# pen_max_y = 38650
# resolution = 5050
[tablet_gt185]
model_name = GT-185
screen = true
screen_width = 1366
screen_height = 768
pen_max_x = 64400
pen_max_y = 36240
pen_max_z = 2047
resolution = 4000
buttons = 8
[tablet_gt191]
model_name = GT-191
screen = true
screen_width = 1920
screen_height = 1080
pen_max_x = 86970
pen_max_y = 47752
pen_max_z = 8191
resolution = 5080
[tablet_gt220v2]
model_name = GT-220 v2
screen = true
screen_width = 1920
screen_height = 1080
pen_max_x = 95352
pen_max_y = 53645
pen_max_z = 8191
resolution = 5080
[tablet_gt221pro]
model_name = GT-221 PRO
screen = true
screen_width = 1920
screen_height = 1080
pen_max_x = 95352
pen_max_y = 53645
pen_max_z = 8191
resolution = 5080
buttons = 10
scrollbar = 1
[tablet_h950p]
model_name = H950P
pen_max_x = 44200
pen_max_y = 27600
pen_max_z = 8191
resolution = 5080
buttons = 8
pen_min_tilt = -60
pen_max_tilt = 60
[tablet_h610pro]
model_name = H610 PRO
screen = true
pen_max_x = 50800
pen_max_y = 31750
pen_max_z = 8191
resolution = 5080
buttons = 8
[tablet_h430p]
model_name = H430P
pen_max_x = 24384
pen_max_y = 15240
pen_max_z = 8191
resolution = 5080
buttons = 4
[tablet_hs64]
model_name = HS64
pen_max_x = 32000
pen_max_y = 20400
pen_max_z = 8191
resolution = 5080
buttons = 4
[tablet_h320m] # 256c:006d
model_name = H320M
pen_max_x = 44200
pen_max_y = 27600
pen_max_z = 8191
resolution = 5080
buttons = 11
[tablet_q11kv2]
model_name = Inspiroy Q11K V2
pen_max_x = 55880
pen_max_y = 34925
pen_max_z = 8191
resolution = 5080
buttons = 8
# Use this tablet to show the technical input information
[tablet_debug]
model_name = DEBUG TABLET
debug_only = true
# PLEASE SEND THE INFORMATION FROM YOUR TABLET
# ------------------------------------------------------------------------------
; If you have access to a Huion model that is not present in the latest
; [config.ini][1] file, or that doesn't work correctly, please
; [open an issue][2] and send the console output.
;
; [1]: https://github.com/joseluis/huion-linux-drivers/blob/master/config.ini
; [2]: https://github.com/joseluis/huion-linux-drivers/issues/new
;
; Make sure you have configured the option:
; current_table = [tablet_debug]
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~