added caravan config
[tmk_keyboard.git] / keyboard / caravan / keymap_caravan.c
1 #include "keymap_common.h"
2
3 const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 /* 0: qerty */
5 KEYMAP(TAB, Q, W, E, R, T, Y, U, I, O, P, BSPC, \
6 FN0, A, S, D, F, G, H, J, K, L, SCLN,FN0, \
7 LSFT, Z, X, C, V, B, N, M, COMM,DOT,SLSH,FN1, \
8 LCTL, FN1, LGUI, ENT, SPC, RALT, RSFT, ESC, FN2),
9
10 /* 1: FN 1 */
11 KEYMAP(GRV, FN4, FN5, FN6, FN7, FN8, FN9,FN10,FN11,FN12,FN13, DEL, \
12 TRNS, BSLS,QUOT,MINS, EQL,LBRC,RBRC,DOWN, UP,LEFT,RGHT, TRNS, \
13 TRNS, ESC,FN20,PSCR,TRNS,TRNS,TRNS,MSTP,MPLY,MPRV,MNXT, RSFT, \
14 TRNS, LGUI, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS),
15
16 /* 2: FN 2 */
17 KEYMAP(FN3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, TRNS, \
18 ESC, FN14,FN15,FN16,FN17,FN18,FN19, 4, 5, 6,VOLU, ENT, \
19 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, 0, 1, 2, 3,VOLD, TRNS, \
20 TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS),
21
22 /* 3: Game Mode */
23 KEYMAP(TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, F1, F2, F3, F4, TRNS, \
24 ESC, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, F5, F6, F7, F8, ENT, \
25 LSFT, 1, 2, 3, 4, 5, 6, F9, F10, F11, F12,RSFT, \
26 TRNS, LSFT, B, SPC, C, TRNS, TRNS, TRNS, TRNS),
27
28 /* 4: LED Mode */
29 KEYMAP(TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
30 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
31 TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS,TRNS, \
32 TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS),
33 };
34
35 const uint16_t PROGMEM fn_actions[] = {
36 [0] = ACTION_LAYER_MOMENTARY(1),
37 [1] = ACTION_LAYER_MOMENTARY(2),
38 [2] = ACTION_LAYER_TOGGLE(3),
39 [3] = ACTION_MODS_KEY(MOD_LSFT, KC_GRV),
40 [4] = ACTION_MODS_KEY(MOD_LSFT, KC_1),
41 [5] = ACTION_MODS_KEY(MOD_LSFT, KC_2),
42 [6] = ACTION_MODS_KEY(MOD_LSFT, KC_3),
43 [7] = ACTION_MODS_KEY(MOD_LSFT, KC_4),
44 [8] = ACTION_MODS_KEY(MOD_LSFT, KC_5),
45 [9] = ACTION_MODS_KEY(MOD_LSFT, KC_6),
46 [10] = ACTION_MODS_KEY(MOD_LSFT, KC_7),
47 [11] = ACTION_MODS_KEY(MOD_LSFT, KC_8),
48 [12] = ACTION_MODS_KEY(MOD_LSFT, KC_9),
49 [13] = ACTION_MODS_KEY(MOD_LSFT, KC_0),
50 [14] = ACTION_MODS_KEY(MOD_LSFT, KC_BSLS),
51 [15] = ACTION_MODS_KEY(MOD_LSFT, KC_QUOT),
52 [16] = ACTION_MODS_KEY(MOD_LSFT, KC_MINS),
53 [17] = ACTION_MODS_KEY(MOD_LSFT, KC_EQL),
54 [18] = ACTION_MODS_KEY(MOD_LSFT, KC_LBRC),
55 [19] = ACTION_MODS_KEY(MOD_LSFT, KC_RBRC),
56 [20] = ACTION_LAYER_TOGGLE(4)
57 };
Imprint / Impressum