]> git.gir.st - tmk_keyboard.git/blob - converter/m0110_usb/keymap_hasu.c
Merge branch 'unimap'
[tmk_keyboard.git] / converter / m0110_usb / keymap_hasu.c
1 /*
2 Copyright 2014 Jun Wako <wakojun@gmail.com>
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17 #include <stdint.h>
18 #include "keycode.h"
19 #include "keymap_common.h"
20
21
22 const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
23 /* Default:
24 * M0110
25 * ,---------------------------------------------------------.
26 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backs|
27 * |---------------------------------------------------------|
28 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
29 * |---------------------------------------------------------|
30 * |Ctrl | A| S| D| F| G| H| J| K| L| Fn| '|Return|
31 * |---------------------------------------------------------|
32 * |Shift | Z| X| C| V| B| N| M| ,| ,| Fn|Shift |
33 * `---------------------------------------------------------'
34 * |Fn |alt | Fn |Gui |Fn |
35 * `-----------------------------------------------'
36 */
37 [0] = KEYMAP(
38 ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, NLCK,EQL, PSLS,PAST,
39 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, P7, P8, P9, PMNS,
40 LCTL,A, S, D, F, G, H, J, K, L, FN3, QUOT, ENT, P4, P5, P6, PPLS,
41 LSFT,Z, X, C, V, B, N, M, COMM,DOT, FN1, UP, P1, P2, P3, PENT,
42 FN0, LALT, FN2, LGUI,BSLS,LEFT,RGHT,DOWN, P0, PDOT
43 ),
44 // IJKL cursor
45 [1] = KEYMAP(
46 GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, NLCK,EQL, PSLS,PAST,
47 CAPS,NO, NO, NO, NO, NO, HOME,PGDN,UP, PGUP,END, NO, NO, P7, P8, P9, PMNS,
48 LCTL,VOLD,VOLU,MUTE,NO, NO, HOME,LEFT,DOWN,RGHT,END, NO, ENT, P4, P5, P6, PPLS,
49 LSFT,NO, NO, NO, NO, NO, HOME,PGDN,PGUP,END, NO, PGUP, P1, P2, P3, PENT,
50 TRNS,LALT, SPC, LGUI,BSLS,HOME,END, PGDN, P0, PDOT
51 ),
52 // HJKL cursor
53 [2] = KEYMAP(
54 GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, NLCK,EQL, PSLS,PAST,
55 CAPS,NO, NO, NO, NO, NO, HOME,PGDN,UP, PGUP,END, NO, NO, P7, P8, P9, PMNS,
56 LCTL,VOLD,VOLU,MUTE,NO, NO, LEFT,DOWN,UP, RGHT,NO, NO, ENT, P4, P5, P6, PPLS,
57 LSFT,NO, NO, NO, NO, NO, HOME,PGDN,PGUP,END, TRNS, PGUP, P1, P2, P3, PENT,
58 TRNS,LALT, SPC, LGUI,BSLS,HOME,END, PGDN, P0, PDOT
59 ),
60 // Mousekey
61 [3] = KEYMAP(
62 GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, NLCK,EQL, PSLS,PAST,
63 CAPS,Q, W, E, R, T, WH_L,WH_D,MS_U,WH_U,WH_R,WBAK,WFWD, P7, P8, P9, PMNS,
64 LCTL,VOLD,VOLU,MUTE,NO, NO, BTN2,MS_L,MS_D,MS_R,BTN1,NO, ENT, P4, P5, P6, PPLS,
65 LSFT,Z, X, C, V, B, BTN2,BTN1,BTN4,BTN5,NO, PGUP, P1, P2, P3, PENT,
66 NO, LALT, TRNS, LGUI,BSLS,HOME,END, PGDN, P0, PDOT
67 ),
68 // Mousekey
69 [4] = KEYMAP(
70 GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, NLCK,EQL, PSLS,PAST,
71 CAPS,Q, W, E, R, T, WH_L,WH_D,MS_U,WH_U,WH_R,WBAK,WFWD, P7, P8, P9, PMNS,
72 LCTL,VOLD,VOLU,MUTE,NO, NO, BTN2,MS_L,MS_D,MS_R,TRNS,NO, ENT, P4, P5, P6, PPLS,
73 LSFT,Z, X, C, V, B, BTN2,BTN1,BTN4,BTN5,NO, PGUP, P1, P2, P3, PENT,
74 NO, LALT, BTN1, LGUI,BSLS,HOME,END, PGDN, P0, PDOT
75 ),
76 };
77
78
79 /*
80 * Fn action definition
81 */
82 const action_t fn_actions[] PROGMEM = {
83 [0] = ACTION_LAYER_MOMENTARY(1),
84 [1] = ACTION_LAYER_TAP_KEY(2, KC_SLASH),
85 [2] = ACTION_LAYER_TAP_KEY(3, KC_SPACE),
86 [3] = ACTION_LAYER_TAP_KEY(4, KC_SCOLON),
87 };
Imprint / Impressum