Layer 2 hinzugefügt
This commit is contained in:
parent
5ef9402099
commit
973a79c803
1 changed files with 7 additions and 0 deletions
|
@ -41,6 +41,10 @@ layer_1 = {4: Keycode.COMMA,
|
||||||
14: Keycode.SIX,
|
14: Keycode.SIX,
|
||||||
15: Keycode.NINE}
|
15: Keycode.NINE}
|
||||||
|
|
||||||
|
layer_2 = {4: Keycode.COMMA,
|
||||||
|
5: Keycode.ONE,
|
||||||
|
6: Keycode.FOUR,
|
||||||
|
7: Keycode.SEVEN}
|
||||||
|
|
||||||
layer_3 = {6: ConsumerControlCode.VOLUME_DECREMENT,
|
layer_3 = {6: ConsumerControlCode.VOLUME_DECREMENT,
|
||||||
7: ConsumerControlCode.SCAN_PREVIOUS_TRACK,
|
7: ConsumerControlCode.SCAN_PREVIOUS_TRACK,
|
||||||
|
@ -50,12 +54,14 @@ layer_3 = {6: ConsumerControlCode.VOLUME_DECREMENT,
|
||||||
15: ConsumerControlCode.SCAN_NEXT_TRACK}
|
15: ConsumerControlCode.SCAN_NEXT_TRACK}
|
||||||
|
|
||||||
layers = {1: layer_1,
|
layers = {1: layer_1,
|
||||||
|
2: layer_2,
|
||||||
3: layer_3}
|
3: layer_3}
|
||||||
|
|
||||||
# Define the modifier key and layer selector keys
|
# Define the modifier key and layer selector keys
|
||||||
modifier = keys[0]
|
modifier = keys[0]
|
||||||
|
|
||||||
selectors = {1: keys[1],
|
selectors = {1: keys[1],
|
||||||
|
2: keys[2],
|
||||||
3: keys[3]}
|
3: keys[3]}
|
||||||
|
|
||||||
# Start on layer 1
|
# Start on layer 1
|
||||||
|
@ -63,6 +69,7 @@ current_layer = 1
|
||||||
|
|
||||||
# The colours for each layer
|
# The colours for each layer
|
||||||
colours = {1: (255, 0, 255),
|
colours = {1: (255, 0, 255),
|
||||||
|
2: (0, 255, 255),
|
||||||
3: (255, 255, 0)}
|
3: (255, 255, 0)}
|
||||||
|
|
||||||
layer_keys = range(4, 16)
|
layer_keys = range(4, 16)
|
||||||
|
|
Loading…
Reference in a new issue