more on layer2, moved around fn-actions
[tmk_keyboard.git] / keyboard / tv44 / keymap_tv44.c
1 #include "keymap_common.h"
2
3 const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 /* Layer: Base Layer
5 * ,-------------------------------------------------.
6 * |Esc| Q| W| E| R| T| Z| U| I| O| P| BSp |
7 * |-------------------------------------------------|
8 * |C/^I| A| S| D| F| G| H| J| K| L| /|Fn2 |
9 * |-------------------------------------------------|
10 * |Shift| Y| X| C| V| B| N| M| ,| .| -|Sft|
11 * |-------------------------------------------------|
12 * |Alt | XXX |XXX |Enter| Space |XXX |XXX | Fn3 |
13 * `-------------------------------------------------'
14 */
15 KEYMAP(
16 ESC , Q, W, E, R, T, Y, U, I, O, P, BSPC, \
17 LCTRL, A, S, D, F, G, H, J, K, L,FN11, FN2, \
18 LSHIFT, Z, X, C, V, B, N, M,COMM, DOT,SLSH, RSHIFT, \
19 LALT, FN1, LGUI, ENT, SPC, RALT, RSFT, FN3 ),
20
21 /* Layer: Movement Layer (wrd=ctrl-right, bck=crtl-left) TOGGLE
22 * ,-------------------------------------------------.
23 * | | |wrd| |END| | |PUp| | |Hom| Del |
24 * |-------------------------------------------------|
25 * | | | |PDn| | |Lft| Up| Dn| Rt| | |
26 * |-------------------------------------------------|
27 * | |Psc| | | |bck| | | | | | |
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: Numbers and ASCII-Symbols Layer MOMENTARY+TOGGLE
39 * ,-------------------------------------------------.
40 * | ^| !| "| §| $| %| &| /| (| )| =| ? |
41 * |-------------------------------------------------|
42 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| ' |
43 * |-------------------------------------------------|
44 * | #| <| || >| +| *| {| [| ]| }| \| ~| TODO: < | > { [ ] } \ ~
45 * |-------------------------------------------------|
46 * | | | | | | | | |
47 * `-------------------------------------------------'
48 */
49 KEYMAP(
50 GRV , FN5, FN6, FN7, FN8, FN9,FN10,FN11,FN12,FN13,FN14, FN17, \
51 FN18 , 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, FN15, \
52 BSLS ,TRNS,TRNS,TRNS,RBRC,FN20,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
53 TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS ),
54
55 /* Layer: Layer for Function keys and Unicode Symbols MOMENTARY
56 * ,-------------------------------------------------.
57 * | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11| F12|
58 * |-------------------------------------------------|
59 * | | | | | | | | | Ä| Ö| Ü|Entr|
60 * |-------------------------------------------------|
61 * | |LED|Fls| °| ²| ³| µ| ä| ö| ü| ß| |
62 * |-------------------------------------------------|
63 * | | | |Space| Enter | | | |
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
73 const action_t PROGMEM fn_actions[] = {
74 /*[0] = ???,*/
75 [1] = ACTION_LAYER_MOMENTARY(1),
76 [2] = ACTION_LAYER_MOMENTARY(2),
77 [3] = ACTION_LAYER_MOMENTARY(3),
78 [4] = ACTION_MODS_KEY(MOD_LSFT, KC_GRV),
79 [5] = ACTION_MODS_KEY(MOD_LSFT, KC_1),
80 [6] = ACTION_MODS_KEY(MOD_LSFT, KC_2),
81 [7] = ACTION_MODS_KEY(MOD_LSFT, KC_3),
82 [8] = ACTION_MODS_KEY(MOD_LSFT, KC_4),
83 [9] = ACTION_MODS_KEY(MOD_LSFT, KC_5),
84 [10] = ACTION_MODS_KEY(MOD_LSFT, KC_6),
85 [11] = ACTION_MODS_KEY(MOD_LSFT, KC_7),
86 [12] = ACTION_MODS_KEY(MOD_LSFT, KC_8),
87 [13] = ACTION_MODS_KEY(MOD_LSFT, KC_9),
88 [14] = ACTION_MODS_KEY(MOD_LSFT, KC_0),
89 [15] = ACTION_MODS_KEY(MOD_LSFT, KC_BSLS), // #' key
90 [16] = ACTION_MODS_KEY(MOD_LSFT, KC_QUOT),
91 [17] = ACTION_MODS_KEY(MOD_LSFT, KC_MINS), // ß?\ key
92 [18] = ACTION_MODS_KEY(MOD_LSFT, KC_EQL), // ´` key
93 [19] = ACTION_MODS_KEY(MOD_LSFT, KC_LBRC), // ü key
94 [20] = ACTION_MODS_KEY(MOD_LSFT, KC_RBRC), // +*~ key
95 [21] = ACTION_MODS_TAP_KEY(MOD_LSFT, KC_ESC),
96 [22] = ACTION_MODS_TAP_KEY(MOD_LCTRL, KC_TAB)
97 };
Imprint / Impressum