1 #include "keymap_common.h"
6 const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
8 * ,-----------------------------------------------------------.
9 * |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \ |
10 * |-----------------------------------------------------------|
11 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]|Bspc |
12 * |-----------------------------------------------------------|
13 * |Ctrl | A| S| D| F| G| H| J| K| L|Fn3| '|FN1 |
14 * |-----------------------------------------------------------|
15 * |Shift | Z| X| C| V| B| N| M| ,| .|Fn2|Shift |
16 * |-----------------------------------------------------------|
17 * |Ctrl |Gui |Alt | Space |Alt |Fn5 |Ctrl |
18 * `-----------------------------------------------------------'
21 ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSLS, \
22 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSPC, \
23 LCTL,A, S, D, F, G, H, J, K, L, FN3, QUOT,FN1, \
24 LSFT,Z, X, C, V, B, N, M, COMM,DOT, FN2, RSFT, \
25 LCTL,LGUI,LALT, FN4, RALT,FN5, FN0),
28 * ,-----------------------------------------------------------.
29 * |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| ` |
30 * |-----------------------------------------------------------|
31 * |Caps | | | | | | | |Psc|Slk|Pus|Up | |Del |
32 * |-----------------------------------------------------------|
33 * |Contro|VoD|VoU|Mut| | | *| /|Hom|PgU|Lef|Rig|Enter |
34 * |-----------------------------------------------------------|
35 * |Shift | | | | | | +| -|End|PgD|Dow|Shift |
36 * |-----------------------------------------------------------|
37 * |Ctrl |Gui |Alt | Space |Alt |Fn5 |Ctrl |
38 * `-----------------------------------------------------------'
41 GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, GRV, \
42 CAPS,NO, NO, NO, NO, NO, NO, NO, PSCR,SLCK,PAUS,UP, NO, DEL, \
43 LCTL,VOLD,VOLU,MUTE,NO, NO, PAST,PSLS,HOME,PGUP,LEFT,RGHT,TRNS, \
44 LSFT,NO, NO, NO, NO, NO, PPLS,PMNS,END, PGDN,DOWN,RSFT, \
45 LCTL,LGUI,LALT, TRNS, RALT,RGUI,TRNS),
48 * ,-----------------------------------------------------------.
49 * |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Del |
50 * |-----------------------------------------------------------|
51 * |Tab |Hom|PgD|Up |PgU|End|Hom|PgD|PgUlEnd| | | |Backs|
52 * |-----------------------------------------------------------|
53 * |Contro| |Lef|Dow|Rig| |Lef|Dow|Up |Rig| | |Return |
54 * |-----------------------------------------------------------|
55 * |Shift | | | | | |Hom|PgD|PgUlEnd|Fn0|Shift |
56 * |-----------------------------------------------------------|
57 * |Ctrl |Gui |Alt | Space |Alt |Fn5 |Ctrl |
58 * `-----------------------------------------------------------'
61 GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, GRV, \
62 TAB, HOME,PGDN,UP, PGUP,END, HOME,PGDN,PGUP,END, NO, NO, NO, DEL, \
63 LCTL,NO, LEFT,DOWN,RGHT,NO, LEFT,DOWN,UP, RGHT,NO, NO, ENT, \
64 LSFT,NO, NO, NO, NO, NO, HOME,PGDN,PGUP,END, FN2, RSFT, \
65 LCTL,LGUI,LALT, SPC, RALT,RGUI,RCTL),
67 /* Mouse mode(IJKL)[Semicolon]
68 * ,-----------------------------------------------------------.
69 * |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Ins|Del|
70 * |-----------------------------------------------------------|
71 * |Tab | | | | | |MwL|MwD|McU|MwU|MwR|Wbk|Wfr|Alt-T|
72 * |-----------------------------------------------------------|
73 * |Contro| | | | | |Mb2|McL|McD|McR|Fn | |Return |
74 * |-----------------------------------------------------------|
75 * |Shift | | | | |Mb3|Mb2|Mb1|Mb4|Mb5| |Shift | |
76 * |-----------------------------------------------------------|
77 * |Ctrl |Gui |Alt | Space |Alt |Fn5 |Ctrl |
78 * `-----------------------------------------------------------'
79 * Mc: Mouse Cursor / Mb: Mouse Button / Mw: Mouse Wheel
82 GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, GRV, \
83 FN8, NO, NO, NO, NO, NO, NO, WH_D,MS_U,WH_U,RGHT,FN9, FN10,FN8, \
84 LCTL,ACL0,ACL1,ACL2,ACL2,NO, NO, MS_L,MS_D,MS_R,TRNS,NO, ENT, \
85 LSFT,NO, NO, NO, NO, BTN3,BTN2,BTN1,FN9, FN10,NO, RSFT, \
86 LCTL,LGUI,LALT, BTN1, TRNS,TRNS,TRNS),
88 /* Layer 4: Mouse mode(IJKL)[Space]
89 * ,-----------------------------------------------------------.
90 * |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Ins|Del|
91 * |-----------------------------------------------------------|
92 * |Tab | | | | | |MwL|MwD|McU|MwU|MwR|Wbk|Wfr|Alt-T|
93 * |-----------------------------------------------------------|
94 * |Contro| | | | | |Mb2|McL|McD|McR|Mb1| |Return |
95 * |-----------------------------------------------------------|
96 * |Shift | | | | |Mb3|Mb2|Mb1|Mb4|Mb5| |Shift | |
97 * |-----------------------------------------------------------|
98 * |Ctrl |Gui |Alt | Space |Alt |Fn5 |Ctrl |
99 * `-----------------------------------------------------------'
100 * Mc: Mouse Cursor / Mb: Mouse Button / Mw: Mouse Wheel
103 GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, GRV, \
104 FN8, NO, NO, NO, NO, NO, NO, WH_D,MS_U,WH_U,RGHT,FN9, FN10,FN8, \
105 LCTL,VOLD,VOLU,MUTE,NO, NO, NO, MS_L,MS_D,MS_R,BTN1,NO, ENT, \
106 LSFT,NO, NO, NO, NO, BTN3,BTN2,BTN1,FN9, FN10,NO, RSFT, \
107 LCTL,LGUI,LALT, TRNS, TRNS,TRNS,TRNS),
111 /* id for user defined function/macro */
122 * Fn action definition
124 const action_t PROGMEM fn_actions[] = {
125 [0] = ACTION_LAYER_MOMENTARY(1), // HHKB layer
126 [1] = ACTION_LAYER_TAP_KEY(1, KC_ENTER), // HHKB layer
127 [2] = ACTION_LAYER_TAP_KEY(2, KC_SLASH), // Cursor layer with Slash*
128 [3] = ACTION_LAYER_TAP_KEY(3, KC_SCLN), // Mousekey layer with Semicolon*
129 [4] = ACTION_LAYER_TAP_KEY(4, KC_SPC), // Mousekey layer with Space
130 [5] = ACTION_LAYER_MOMENTARY(3), // Mousekey layer(IJKL)
131 [6] = ACTION_LAYER_TAP_KEY(MOD_RCTL, KC_ENT), // RControl with tap Enter
132 [7] = ACTION_MODS_ONESHOT(MOD_LSFT), // Oneshot Shift
133 [8] = ACTION_MACRO(ALT_TAB), // Application switching
134 [9] = ACTION_MODS_KEY(MOD_LALT, KC_LEFT),
135 [10] = ACTION_MODS_KEY(MOD_LALT, KC_RIGHT),
142 const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
146 return (record->event.pressed ?
147 MACRO( D(LALT), D(TAB), END ) :
148 MACRO( U(TAB), END ));