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
|
// Copyright 2021 Allen Choi (@thunderbird2086)
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
#include "layers_block.h"
// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_COLEMAK] = LAYOUT_wrapper(
// +---------+---------+---------+---------+---------+---------+ +---------+---------+---------+---------+---------+---------+
T_TAB , ___________________COLEMAK_DH_L1_______________ , ___________________COLEMAK_DH_R1_______________ , KC_MINS ,
// |---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------|
KC_LCTL , ___________________COLEMAK_DH_L2_______________ , ___________________COLEMAK_DH_R2_______________ , CTL_QUOT,
// |---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------|
KC_LSFT , ___________________COLEMAK_DH_L3_______________ , ___________________COLEMAK_DH_R3_______________ , ADJ_EQL ,
// +---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+
_________MOD_LEFT__________ , _________MOD_RIGHT_________
// \----------------------------/ \-----------------------------/
),
[_QWERTY] = LAYOUT_wrapper(
// +---------+---------+---------+---------+---------+---------+ +---------+---------+---------+---------+---------+---------+
T_TAB , ___________________QWERTY_L1___________________ , ___________________QWERTY_R1___________________ , KC_MINS ,
// |---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------|
KC_LCTL , ___________________QWERTY_L2___________________ , ___________________QWERTY_R2___________________ , CTL_QUOT,
// |---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------|
KC_LSFT , ___________________QWERTY_L3___________________ , ___________________QWERTY_R3___________________ , ADJ_EQL ,
// +---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+
_________MOD_LEFT__________ , _________MOD_RIGHT_________
// \----------------------------/ \-----------------------------/
),
[_FUNCTION] = LAYOUT_wrapper(
// +---------+---------+---------+---------+---------+---------+ +---------+---------+---------+---------+---------+---------+
KC_ESC , ___________________FUNC_LEFT___________________ , ___________________FUNC_RIGHT__________________ , KC_F11 ,
// |---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------|
K_CSCN , ____________________MEDIA_1____________________ , KC_DEL , _______________NAV_1_________________ , KC_F12 ,
// |---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------|
_______ , ____________________MEDIA_2____________________ , KC_INS , _______________NAV_2_________________ , K_LOCK ,
// +---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+
_______MOD_TRNS_LEFT_______ , _______MOD_TRNS_RIGHT______
// \----------------------------/ \-----------------------------/
),
[_CODE] = LAYOUT_wrapper(
// +---------+---------+---------+---------+---------+---------+ +---------+---------+---------+---------+---------+---------+
T_GRV , ___________________NUM_LEFT____________________ , ___________________NUM_RIGHT___________________ , KC_BSLS ,
// |---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------|
________________________SYMBOL_L1________________________ , ________________________SYMBOL_R1________________________ ,
// |---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------|
________________________SYMBOL_L2________________________ , ________________________SYMBOL_R2________________________ ,
// +---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+
_______MOD_TRNS_LEFT_______ , _______MOD_TRNS_RIGHT______
// \----------------------------/ \-----------------------------/
),
[_ADJUST] = LAYOUT_wrapper(
// +---------+---------+---------+---------+---------+---------+ +---------+---------+---------+---------+---------+---------+
________________________ADJUST_L1________________________ , ________________________ADJUST_R1________________________ ,
// |---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------|
________________________ADJUST_L2________________________ , ________________________ADJUST_R2________________________ ,
// |---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------|
________________________ADJUST_L3________________________ , ________________________ADJUST_R3________________________ ,
// +---------+---------+---------+---------+---------+---------+ +---------+---------+---------+---------+---------+---------+
_______ , _______ , _______ , _______ , _______ , _______
// \----------------------------/ \-----------------------------/
),
[_SECRET] = LAYOUT_wrapper(
// +---------+---------+---------+---------+---------+---------+ +---------+---------+---------+---------+---------+---------+
________________________SECRET_L1________________________ , ________________________SECRET_R1________________________ ,
// |---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------|
________________________SECRET_L2________________________ , ________________________SECRET_R2________________________ ,
// |---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------|
________________________SECRET_L3________________________ , ________________________SECRET_R3________________________ ,
// +---------+---------+---------+---------+---------+---------+ +---------+---------+---------+---------+---------+---------+
XXXXXXX , XXXXXXX , XXXXXXX , XXXXXXX , XXXXXXX , XXXXXXX
// \----------------------------/ \-----------------------------/
)
};
// clang-format off
#if defined(RGBLIGHT_ENABLE)
__attribute__((weak))
void set_rgb_by_layer(layer_state_t state) {
return;
}
#endif
layer_state_t layer_state_set_user(layer_state_t state) {
# if defined(RGBLIGHT_ENABLE)
set_rgb_by_layer(state);
# endif
return update_tri_layer_state(state, _FUNCTION, _ADJUST, _SECRET);
}
|