Refactor minivan config to not use a layer hack
[tmk_keyboard.git] / keyboard / tv44 / keymap_tv44.c
CommitLineData
5dd11e82
J
1#include "keymap_common.h"
2
3const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 /* Layer: Base Layer
5 * ,-------------------------------------------------.
6 * |Tab| Q| W| E| R| T| Y| U| I| O| P| BSp |
7 * |-------------------------------------------------|
8 * |FN1 | A| S| D| F| G| H| J| K| L| ;|Fn1'|
9 * |-------------------------------------------------|
10 * |SftEs| Z| X| C| V| B| N| M| ,| .| /|FN2|
11 * |-------------------------------------------------|
12 * |Ctrl| FN2 |Gui |Enter| Space |Alt |Shift| FN3 |
13 * `-------------------------------------------------'
14 */
15 KEYMAP(
16 TAB , Q, W, E, R, T, Y, U, I, O, P, BSPC, \
17 FN0 , A, S, D, F, G, H, J, K, L,SCLN, FN21, \
18 FN22 , Z, X, C, V, B, N, M,COMM, DOT,SLSH, FN1, \
19 LCTL, FN1, LGUI, ENT, SPC, RALT, RSFT, FN2 ),
20
21 /* Layer: Function Layer 1
22 * ,-------------------------------------------------.
23 * | `| !| @| #| $| %| ^| &| *| (| )| Del |
24 * |-------------------------------------------------|
25 * | | \| '| -| =| [| ]| Dn| Up|Lft| Rt| |
26 * |-------------------------------------------------|
27 * | |Esc|LED|PSc| | | |Stp|Ply|Prv|Nxt|Sft|
28 * |-------------------------------------------------|
29 * | | Gui | | | | | | |
30 * `-------------------------------------------------'
31 */
32 KEYMAP(
33 GRV , FN4, FN5, FN6, FN7, FN8, FN9,FN10,FN11,FN12,FN13, DEL, \
34 TRNS ,BSLS,QUOT,MINS, EQL,LBRC,RBRC,DOWN, UP,LEFT,RGHT, TRNS, \
35 TRNS , ESC,FN20,PSCR,TRNS,TRNS,TRNS,MSTP,MPLY,MPRV,MNXT,RSFT, \
36 TRNS, LGUI, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS ),
37
38 /* Layer: Function Layer 2
39 * ,-------------------------------------------------.
40 * | ~| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| |
41 * |-------------------------------------------------|
42 * | Esc| || "| _| +| {| }| 4| 5| 6|Vl+|Entr|
43 * |-------------------------------------------------|
44 * | | | | | | | | 1| 2| 3|Vl-| |
45 * |-------------------------------------------------|
46 * | | | | | | | | |
47 * `-------------------------------------------------'
48 */
49 KEYMAP(
50 FN3 , 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, TRNS, \
51 ESC ,FN14,FN15,FN16,FN17,FN18,FN19, 4, 5, 6,VOLU, ENT, \
52 TRNS ,TRNS,TRNS,TRNS,TRNS,TRNS, 0, 1, 2, 3,VOLD,TRNS, \
53 TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS ),
54
55 /* Layer: Game Layer
56 * ,-------------------------------------------------.
57 * | | | | | | | | F1| F2| F3| F4| |
58 * |-------------------------------------------------|
59 * | Esc| | | | | | | F5| F6| F7| F8|Entr|
60 * |-------------------------------------------------|
61 * |Shift| 1| 2| 3| 4| 5| 6| F9|F10|F11|F12|Sft|
62 * |-------------------------------------------------|
63 * | | Shift | B |Space| C | | | |
64 * `-------------------------------------------------'
65 */
66 KEYMAP(
67 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, F1, F2, F3, F4, TRNS, \
68 ESC ,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, F5, F6, F7, F8, ENT, \
69 LSFT , 1, 2, 3, 4, 5, 6, F9, F10, F11, F12,RSFT, \
70 TRNS, LSFT, B, SPC, C, TRNS, TRNS, TRNS ),
71
72#if 0
73 /* Layer: XX Layer
74 * ,-------------------------------------------------.
75 * | | | | | | | | | | | | |
76 * |-------------------------------------------------|
77 * | | | | | | | | | | | | |
78 * |-------------------------------------------------|
79 * | | | | | | | | | | | | |
80 * |-------------------------------------------------|
81 * | | | | | | | | |
82 * `-------------------------------------------------'
83 */
84 KEYMAP(
85 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
86 TRNS ,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
87 TRNS ,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
88 TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS ),
89#endif
90};
91
92const action_t PROGMEM fn_actions[] = {
93 [0] = ACTION_LAYER_MOMENTARY(1),
94 [1] = ACTION_LAYER_MOMENTARY(2),
95 [2] = ACTION_LAYER_TOGGLE(3),
96 [3] = ACTION_MODS_KEY(MOD_LSFT, KC_GRV),
97 [4] = ACTION_MODS_KEY(MOD_LSFT, KC_1),
98 [5] = ACTION_MODS_KEY(MOD_LSFT, KC_2),
99 [6] = ACTION_MODS_KEY(MOD_LSFT, KC_3),
100 [7] = ACTION_MODS_KEY(MOD_LSFT, KC_4),
101 [8] = ACTION_MODS_KEY(MOD_LSFT, KC_5),
102 [9] = ACTION_MODS_KEY(MOD_LSFT, KC_6),
103 [10] = ACTION_MODS_KEY(MOD_LSFT, KC_7),
104 [11] = ACTION_MODS_KEY(MOD_LSFT, KC_8),
105 [12] = ACTION_MODS_KEY(MOD_LSFT, KC_9),
106 [13] = ACTION_MODS_KEY(MOD_LSFT, KC_0),
107 [14] = ACTION_MODS_KEY(MOD_LSFT, KC_BSLS),
108 [15] = ACTION_MODS_KEY(MOD_LSFT, KC_QUOT),
109 [16] = ACTION_MODS_KEY(MOD_LSFT, KC_MINS),
110 [17] = ACTION_MODS_KEY(MOD_LSFT, KC_EQL),
111 [18] = ACTION_MODS_KEY(MOD_LSFT, KC_LBRC),
112 [19] = ACTION_MODS_KEY(MOD_LSFT, KC_RBRC),
113 [20] = ACTION_BACKLIGHT_STEP(),
114 [21] = ACTION_LAYER_TAP_KEY(1, KC_QUOT),
115 [22] = ACTION_MODS_TAP_KEY(MOD_LSFT, KC_ESC)
116};
Imprint / Impressum