2 #include QMK_KEYBOARD_H
4 // TODO: replace your ugly german brckets with #defines
6 // Each layer gets a name for readability, which is then used in the keymap matrix below.
7 // The underscores don't mean anything - you can have a layer called STUFF or any other name.
8 // Layer names don't all need to be of the same length, obviously, and you can also skip them
9 // entirely and just use numbers.
15 // dual-role shortcuts
16 #define TABDUAL LT(_TAB, KC_TAB)
17 #define CAPSDUAL CTL_T(KC_ESC)
18 #define SPACEDUAL LT(_SPC, KC_SPACE)
19 #define ENTERDUAL CTL_T(KC_ENT)
20 // arrow cluster duality bottom right corner
21 #define ARRLEFT ALT_T(KC_LEFT)
22 #define ARRDOWN GUI_T(KC_DOWN)
23 #define ARRUP SFT_T(KC_UP)
24 #define ARRRIGHT CTL_T(KC_RIGHT)
26 #define GER_CUR_L RALT(KC_7) // [
27 #define GER_CUR_R RALT(KC_0) // ]
28 #define GER_PAR_L LSFT(KC_8) // (
29 #define GER_PAR_R LSFT(KC_9) // )
30 #define GER_ANG_L KC_NUBS // <
31 #define GER_ANG_R LSFT(KC_NUBS) // >
32 #define GER_BRC_L RALT(KC_8) // [
33 #define GER_BRC_R RALT(KC_9) // ]
35 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
36 /* Keymap _DEF: Default Layer
37 * ,-----------------------------------------------------------.
38 * |Grv| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |
39 * |-----------------------------------------------------------|
40 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ | Tab is Fn1
41 * |-----------------------------------------------------------|
42 * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '| Return |
43 * |-----------------------------------------------------------|
44 * |Sft | < | Z| X| C| V| B| N| M| ,| .| /|Shift |Fn2| RShift is UP
45 * |-----------------------------------------------------------|
46 * |Ctrl|Win |Alt | Space/Fn0 |Alt |Win |Menu|RCtl| Gui Menu, RCtrl is
47 * `-----------------------------------------------------------' LEFT DWN RIGHT
49 [_DEF] = LAYOUT_60_iso_split_rshift(
50 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, \
51 TABDUAL, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, \
52 CAPSDUAL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, ENTERDUAL, \
53 KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, ARRUP, TG(_SFX), \
54 KC_LCTL, KC_LGUI, KC_LALT, SPACEDUAL, KC_RALT, ARRLEFT, ARRDOWN, ARRRIGHT),
56 /* Keymap 1: F-and-vim Layer, modified with Space (by holding space)
57 * ,-----------------------------------------------------------.
58 * |PrSc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delete|
59 * |-----------------------------------------------------------|
60 * | |Paus| Up| [ | ] | | | | ( | ) | | | | |
61 * |-----------------------------------------------------------|
62 * | |Lft|Dwn|Rgt| | |Left|Down|Right|Up| | | PLAY |
63 * |-----------------------------------------------------------|
64 * | | | | | < | > | |M0 | | | | | Vol+ | |
65 * |-----------------------------------------------------------|
66 * | | | | |Alt |Prev|Vol-|Next|
67 * `-----------------------------------------------------------'
69 [_SPC] = LAYOUT_60_iso_split_rshift(
70 KC_PSCR, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, \
71 _______, KC_PAUS, KC_UP, GER_BRC_L, GER_BRC_R, _______, _______, GER_PAR_L, GER_PAR_R, _______, _______, _______, _______, \
72 _______, KC_LEFT, KC_DOWN, KC_RIGHT, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, _______, KC_MPLY, \
73 _______, _______, _______, _______, GER_ANG_L, GER_ANG_R, KC_SPACE, RALT(KC_SPC),_______, _______, _______, _______, KC_VOLU, _______, \
74 _______, _______, _______, _______, _______, KC_MPRV, KC_VOLD, KC_MNXT),
76 /* Keymap 2: Tab Layer w/ vim pageup, modified with Tab (by holding tab)
77 * ,-----------------------------------------------------------.
78 * |WAKE| | | | | | | | | | | | |Insert| TAB+GRC = WAKE
79 * |-----------------------------------------------------------|
80 * | | | | | | | | | { | } | | | | |
81 * |-----------------------------------------------------------|
82 * | | | | | | |Pos1|PgDn|PgUp|End| | |Retrn |
83 * |-----------------------------------------------------------|
84 * | | | | | | | |AF2| | | | | PgUp | |
85 * |-----------------------------------------------------------|
86 * | | | | |Alt |Pos1|PgDn|End |
87 * `-----------------------------------------------------------'
89 [_TAB] = LAYOUT_60_iso_split_rshift(
90 KC_WAKE, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS, \
91 _______, _______, _______, _______, _______, _______, _______, GER_CUR_L, GER_CUR_R, _______, _______, _______, _______, \
92 _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, _______, _______, KC_ENT, \
93 _______, _______, _______, _______, _______, _______, _______, A(KC_F2), _______, _______, _______, _______, KC_PGUP, _______, \
94 _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END),
96 /* Keymap 3: Split right shift Numpad toggle Layer (by tapping the split rshift key)
97 * ,-----------------------------------------------------------.
98 * |RSET| | | | | | | 7| 8| 9| | | |Backsp |
99 * |-----------------------------------------------------------|
100 * | | | | | | | | 4 | 5 | 6 | | | | \ |
101 * |-----------------------------------------------------------|
102 * | | L | L | | | | | 1 | 2 | 3 | | | Return |
103 * |-----------------------------------------------------------|
104 * | | | L | L | L | L | L | L | | 0 | | /| Up | | All "L"s represent
105 * |-----------------------------------------------------------| LED controlling
106 * |Ctrl|Win |Alt | |Alt |Left|Down|Right|
107 * `-----------------------------------------------------------'
109 [_SFX] = LAYOUT_60_iso_split_rshift(
110 RESET, _______, _______, _______, _______, _______, _______, KC_7, KC_8, KC_9, _______, _______, _______, KC_BSPC, \
111 _______, _______, _______, _______, _______, _______, _______, KC_4, KC_5, KC_6, _______, _______, _______, \
112 _______, RGB_TOG, RGB_MOD, _______, _______, _______, _______, KC_1, KC_2, KC_3, _______, _______, XXXXXXX, KC_ENT, \
113 _______, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, KC_0, _______, KC_SLSH, KC_UP, _______, \
114 _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT),