-
Notifications
You must be signed in to change notification settings - Fork 106
/
Copy pathSample.txt
84 lines (68 loc) · 4.09 KB
/
Sample.txt
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
# To see a list of the available keys see https://github.com/pixeltris/GK6X/blob/81761765f020962ed04ad68f8f0837facda7a1fa/GK6X/KeyValues.cs#L269
##################################################################
# Mapping keys
##################################################################
# On GK84 boards the top right key is 'pause'. This sets all layers (and Fn) to change this to 'delete'.
[Base,Layer1,Layer2,Layer3,FnLayer1,FnLayer2,FnLayer3]
Pause:Delete
# This will map Fn+W to LCtrl+LAlt+Delete on layer3
[FnLayer3]
W:LCtrl+LAlt+Delete
# This will map Backspace to LAlt+Tab on layer1 and layer2
[Layer1,Layer2]
Backspace:LAlt+Tab
##################################################################
# Creating / mapping macros
##################################################################
# MyMacro = the name of the macro
# 0 = milliseconds between each key action
# RepeatXTimes = repeat the macro 'X' number of times (ReleaseKeyToStop / PressKeyAgainToStop are other options which can be used here - see https://github.com/pixeltris/GK6X/blob/81761765f020962ed04ad68f8f0837facda7a1fa/GK6X/Enums.cs#L41)
# 2 = Number of times to repeat the macro (only used with RepeatXTimes)
# - "Press" is a single action, any delay betwen the keys will occur after action has completed. The "Press"
# action presses the key down, then releases without any delay. The delay only occurs at the end of the action.
# - "Down" / "Up" should be used if you want more control over the delays. Here are some example:
# Down:A:1000 <--- this holds down the A key for 1 second
# Up:A:1000 <--- this releases the A key and then waits 1 second
# Press:B:500 <--- this presses the B key (down/up) and then waits half a second
# Press:A+B+C:100 <--- this presses A+B+C then waits 100 milliseconds
# Press:A+B+C <--- this presses A+B+C then waits the duration defined in the macro header (in this case 0)
[Macro(MyMacro,0,RepeatXTimes,2)]
Press:A+B+C
# This is an example of a macro which types 'abcabc' and is bound to the Fn+B of layer1
# The macro name is "MyMacro" which is defined below.
[FnLayer1]
B:Macro(MyMacro)
# This macro will do a cut/paste
[Macro(QuickCutSave)]
Press:LCtrl+X
Press:LCtrl+S
# Assign the macro to Fn+Q on layer3
[FnLayer3]
Q:Macro(QuickCutSave)
##################################################################
# Lighting
##################################################################
# You can use up to 32 lighting effects / static lighting on the base layer.
# Other layers are limited to one lighting effect only (unless someone knows how to change the active lighting effect on other layers).
# The following example sets the "Windmill", "Red light respiration", and "Starlish" lighting effects on the base layer.
# The lighting effects can be found under /Data/lighting/*.le
[Lighting(Windmill,Base)]
[Lighting(Red Light Breathing,Base)]
[Lighting(Star lighting,Base)]
# This uses static lighting to set the 'ASD' keys to red and 'W' to green. See the "WASD static.le" file to see how this works.
[Lighting(WASD static,Layer1)]
# This clears previously assigned lighting effects (it doesn't clear any lighting effects set in this file)
[NoLighting]
# If you're confused about the codes/numbers in the lighting effect files, use the command "dumpkeys null ex" to see the codes for your keyboard keys.
# When creating your own lighting effects you can use the names of the keys as seen in the link at the top of this file.
##################################################################
# Alternative key names for duplicate keys
##################################################################
# Some keyboard have duplicate keys (multiple Space keys, multiple Backspace keys, etc). This causes issues with
# mapping keys by name. You need to use the "dumpkeys" command to see the unique name for those duplicate keys.
# Duplicate keys will be given a name such as "Space_2". You can create alternative names for such keys to clarify
# which key is which.
#
# The following creates a key alias (alternative name) for "Space_2" called "RightSpace", allowing you to use "RightSpace" in mappings
[KeyAlias]
RightSpace:Space_2