]> git.donarmstrong.com Git - tmk_firmware.git/blob - converter/m0110_usb/keymap_spacefn.c
Change keymaps of M0110
[tmk_firmware.git] / converter / m0110_usb / keymap_spacefn.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                                                       M0120
25      * ,---------------------------------------------------------. ,---------------.
26      * |  `|  1|  2|  3|  4|  5|  6|  7|  8|  9|  0|  -|  =|Backs| |Nlk|  -|  +|  *|
27      * |---------------------------------------------------------| |---------------|
28      * |Tab  |  Q|  W|  E|  R|  T|  Y|  U|  I|  O|  P|  [|  ]|  \| |  7|  8|  9|  /|
29      * |---------------------------------------------------------| |---------------|
30      * |Ctrl  |  A|  S|  D|  F|  G|  H|  J|  K|  L|  ;|  '|Return| |  4|  5|  6|  ,|
31      * |---------------------------------------------------------| |---------------|
32      * |Shift   |  Z|  X|  C|  V|  B|  N|  M|  ,|  ,|  /|Shift   | |  1|  2|  3|   |
33      * `---------------------------------------------------------' |-----------|Ent|
34      *      |Opt|Mac |         Space               |Mac |Opt|      |      0|  .|   |
35      *      `-----------------------------------------------'      `---------------'
36      *  M0110A
37      * ,---------------------------------------------------------. ,---------------.
38      * |  `|  1|  2|  3|  4|  5|  6|  7|  8|  9|  0|  -|  =|Bcksp| |Nlk|  =|  /|  *|
39      * |---------------------------------------------------------| |---------------|
40      * |Tab  |  Q|  W|  E|  R|  T|  Y|  U|  I|  O|  P|  [|  ]|   | |  7|  8|  9|  -|
41      * |-----------------------------------------------------'   | |---------------|
42      * |Caps  |  A|  S|  D|  F|  G|  H|  J|  K|  L|  ;|  '|Return| |  4|  5|  6|  +|
43      * |---------------------------------------------------------| |---------------|
44      * |Shift   |  Z|  X|  C|  V|  B|  N|  M|  ,|  ,|  /|Shft|Up | |  1|  2|  3|   |
45      * |---------------------------------------------------------' |-----------|Ent|
46      * |Opt  |Mac    |           Space           |  \|Lft|Rgt|Dn | |      0|  .|   |
47      * `---------------------------------------------------------' `---------------'
48      */
49     [0] = KEYMAP(
50     GRV, 1,   2,   3,   4,   5,   6,   7,   8,   9,   0,   MINS,EQL, BSPC,    NLCK,PEQL,PSLS,PAST,
51     TAB, Q,   W,   E,   R,   T,   Y,   U,   I,   O,   P,   LBRC,RBRC,         P7,  P8,  P9,  PMNS,
52     LCTL,A,   S,   D,   F,   G,   H,   J,   K,   L,   SCLN,QUOT,     ENT,     P4,  P5,  P6,  PPLS,
53     LSFT,Z,   X,   C,   V,   B,   N,   M,   COMM,DOT, SLSH,          UP,      P1,  P2,  P3,  PENT,
54     LALT,LGUI,               FN0,                RGUI,BSLS,LEFT,RGHT,DOWN,    P0,       PDOT
55     ),
56     [1] = KEYMAP(
57     ESC, F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12, DEL,     NLCK,EQL, PSLS,PAST,
58     TRNS,TRNS,TRNS,ESC, TRNS,TRNS,TRNS,HOME,UP,  END, PSCR,SLCK,PAUS,         P7,  P8,  P9,  PMNS,
59     LCTL,TRNS,TRNS,TRNS,TRNS,TRNS,PGUP,LEFT,DOWN,RGHT,TRNS,TRNS,     TRNS,    P4,  P5,  P6,  PPLS,
60     TRNS,TRNS,TRNS,TRNS,TRNS,SPC, PGDN,GRV, FN1, TRNS,APP,           PGUP,    P1,  P2,  P3,  PENT,
61     TRNS,TRNS,               TRNS,               TRNS,INS, HOME,END, PGDN,    P0,       PDOT
62     ),
63 };
64
65 /*
66  * Fn action definition
67  */
68 const uint16_t fn_actions[] PROGMEM = {
69     [0] = ACTION_LAYER_TAP_KEY(1, KC_SPACE),
70     [1] = ACTION_MODS_KEY(MOD_LSFT, KC_GRV),    // tilde
71 };