1 #include "keymap_common.h"
4 const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
6 * ,-----------------------------------------------------------.
7 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|???|BS |
8 * |-----------------------------------------------------------|
9 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
10 * |-----------------------------------------------------------|
11 * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '|xxx|Ret |
12 * |-----------------------------------------------------------|
13 * |Shif|xxx| Z| X| C| V| B| N| M| ,| ,| /|xxx|Shift |
14 * |-----------------------------------------------------------|
15 * |Ctrl |Gui|Alt | Space |Alt |Gui|Ctrl |
16 * `-----------------------------------------------------------'
19 ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSLS,GRV, \
20 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSPC, \
21 LCTL,A, S, D, F, G, H, J, K, L, FN1, QUOT,NO, ENT, \
22 LSFT,NO, Z, X, C, V, B, N, M, COMM,DOT, FN2, NO, FN0, \
23 LCTL,LGUI,LALT, FN3, RGUI,RCTL \
27 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, INS, DEL, \
28 CAPS,NO, NO, NO, NO, NO, NO, NO, PSCR,SLCK,PAUS, UP, NO, BSPC, \
29 LCTL,VOLD,VOLU,MUTE,NO, NO, PAST,PSLS,HOME,PGUP,LEFT,RGHT,NO, ENT, \
30 LSFT,NO, NO, NO, NO, NO, NO, PPLS,PMNS,END, PGDN,DOWN,NO, TRNS, \
31 LCTL,LGUI,LALT, SPC, RGUI,RCTL \
35 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, INS, DEL, \
36 TAB, NO, NO, NO, NO, NO, WH_L,WH_D,WH_U,WH_R,WSTP,WBAK,WFWD,BSPC, \
37 LCTL,NO, ACL0,ACL1,ACL2,NO, MS_L,MS_D,MS_U,MS_R,TRNS,NO, NO, ENT, \
38 LSFT,NO, NO, NO, NO, NO, BTN3,BTN2,BTN1,BTN4,BTN5,NO, NO, RSFT,\
39 LCTL,LGUI,LALT, BTN1, RGUI,RCTL \
43 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, INS, DEL, \
44 TAB, HOME,PGDN,UP, PGUP,END, HOME,PGDN,PGUP,END, NO, NO, NO, BSPC, \
45 LCTL,NO, LEFT,DOWN,RGHT,NO, LEFT,DOWN,UP, RGHT,NO, NO, NO, ENT, \
46 LSFT,NO, NO, NO, NO, NO, NO, HOME,PGDN,PGUP,END, TRNS,NO, RSFT, \
47 LCTL,LGUI,LALT, SPC, RGUI,RCTL \
51 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, INS, DEL, \
52 TAB, NO, NO, NO, NO, NO, WH_L,WH_D,MS_U,WH_U,WH_R,BTN4,BTN5,FN4, \
53 LCTL,VOLD,VOLU,MUTE,NO, NO, BTN2,MS_L,MS_D,MS_R,BTN1,NO, NO, ENT, \
54 LSFT,NO, NO, NO, NO, NO, BTN3,BTN2,BTN1,BTN4,BTN5,NO, NO, NO, \
55 LCTL,LGUI,LALT, TRNS, RGUI,RCTL \
63 const action_t PROGMEM fn_actions[] = {
64 [0] = ACTION_LAYER_MOMENTARY(1),
65 [1] = ACTION_LAYER_TAP_KEY(2, KC_SCLN),
66 [2] = ACTION_LAYER_TAP_KEY(3, KC_SLASH),
67 [3] = ACTION_LAYER_TAP_KEY(4, KC_SPC),
68 [4] = ACTION_MACRO(ALT_TAB),
74 const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
76 keyevent_t event = record->event;
80 return (event.pressed ?
81 MACRO( D(LALT), D(TAB), END ) :
82 MACRO( U(TAB), END ));