aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorichi <taisuke_ichimura@icloud.com>2018-07-16 13:15:56 +0900
committerDrashna Jaelre <drashna@live.com>2018-07-15 21:15:56 -0700
commit612a418ce9be4d22daca93b6f16cedc0cdf5a682 (patch)
tree31937fc42319facd18b5b75c95ff8e839d078450
parent6bdef6b8c21f7a5144d5387e91c970fc038f319b (diff)
downloadqmk_firmware-612a418ce9be4d22daca93b6f16cedc0cdf5a682.tar.gz
qmk_firmware-612a418ce9be4d22daca93b6f16cedc0cdf5a682.zip
Add ichi-t's keymap for the Ergo42 (#3411)
* Add ichi-t's Keymap * Delete rules.mk
-rw-r--r--keyboards/ergo42/keymaps/ichi-t/config.h37
-rw-r--r--keyboards/ergo42/keymaps/ichi-t/keymap.c112
2 files changed, 149 insertions, 0 deletions
diff --git a/keyboards/ergo42/keymaps/ichi-t/config.h b/keyboards/ergo42/keymaps/ichi-t/config.h
new file mode 100644
index 000000000..5a6261c4f
--- /dev/null
+++ b/keyboards/ergo42/keymaps/ichi-t/config.h
@@ -0,0 +1,37 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2012 Jun Wako <wakojun@gmail.com>
5Copyright 2015 Jack Humbert
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef CONFIG_USER_H
22#define CONFIG_USER_H
23
24#include "../../config.h"
25
26/* Use I2C or Serial, not both */
27
28#define USE_SERIAL
29// #define USE_I2C
30
31/* Select hand configuration */
32
33#define MASTER_LEFT
34// #define MASTER_RIGHT
35// #define EE_HANDS
36
37#endif
diff --git a/keyboards/ergo42/keymaps/ichi-t/keymap.c b/keyboards/ergo42/keymaps/ichi-t/keymap.c
new file mode 100644
index 000000000..82cda6df1
--- /dev/null
+++ b/keyboards/ergo42/keymaps/ichi-t/keymap.c
@@ -0,0 +1,112 @@
1#include QMK_KEYBOARD_H
2
3extern keymap_config_t keymap_config;
4
5#define _QWERTY 0
6#define _LOWER 1
7#define _RAISE 2
8#define _CMOVE 3
9#define _WIN 4
10
11// Fillers to make layering more clear
12#define _______ KC_TRNS
13#define XXXXXXX KC_NO
14
15const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
16
17/* QWERTY
18 * ,------------------------------------------------. ,------------------------------------------------.
19 * | Tab | Q | W | E | R | T | PGUP | | PGDN | Y | U | I | O | P | BSPC |
20 * |------+------+------+------+------+------+------| |-------------+------+------+------+------+------|
21 * | Ctrl | A | S | D | F | G | <- | | -> | H | J | K | L | ; | : |
22 * |------+------+------+------+------+------+------| |------|------+------+------+------+------+------|
23 * | Sft | Z | X | C | V | B | HOME | | END | N | M | , | . | / |ET/SFT|
24 * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
25 * | ESC | WIN | ALT | ALT | GUI |LOWER |Space | |Space |RAISE | GUI | HOME | LEFT | RGHT | CMOVE|
26 * `------------------------------------------------' `------------------------------------------------'
27 */
28
29[_QWERTY] = LAYOUT( \
30 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_PGUP, KC_PGDN, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
31 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LEFT, KC_RGHT, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
32 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_HOME, KC_END, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_ENT), \
33 KC_ESC, TT(_WIN), KC_LALT, KC_LALT, KC_LGUI, MO(_LOWER), KC_SPC, KC_SPC, MO(_RAISE), KC_RGUI, KC_RCTL, KC_RSFT, KC_RALT, MO(_CMOVE)
34),
35
36/* RAISE
37 * ,------------------------------------------------. ,------------------------------------------------.
38 * | GRV | 1 | 2 | 3 | 4 | 5 | HOME | | END | 6 | 7 | 8 | 9 | 0 | DEL |
39 * |------+------+------+------+------+------+------| |-------------+------+------+------+------+------|
40 * | | F1 | F2 | F3 | F4 | F5 | <- | | -> | F6 | MINS | EQL | LBRC | RBRC | BSLS |
41 * |------+------+------+------+------+------+------| |------|------+------+------+------+------+------|
42 * | | F7 | F8 | F9 | F10 | F11 | PGUP | | PGDN | F12 | | | | | |
43 * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
44 * | | | | | | |Space | |Space | | | | | | Alt+~|
45 * `------------------------------------------------' `------------------------------------------------'
46 */
47[_RAISE] = LAYOUT( \
48 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \
49 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \
50 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, _______, KC_F12, _______, _______, _______, _______, _______, \
51 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RALT(KC_GRV)
52),
53
54
55/* LOWER
56 * ,------------------------------------------------. ,------------------------------------------------.
57 * | ~ | ! | @ | # | $ | % | | | | ^ | & | * | ( | ) | DEL |
58 * |------+------+------+------+------+------+------| |-------------+------+------+------+------+------|
59 * | | F1 | F2 | F3 | F4 | F5 | | | UP | F6 | _ | + | { | } | | |
60 * |------+------+------+------+------+------+------| |------|------+------+------+------+------+------|
61 * | | F7 | F8 | F9 | F10 | F11 | | | DOWN | F12 | | PGUP | HOME | UP | END |
62 * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
63 * | | | | | | | | | | | | PGDN | LEFT | DOWN | RGHT |
64 * `------------------------------------------------' `------------------------------------------------'
65 */
66
67[_LOWER] = LAYOUT( \
68 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, \
69 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, KC_UP, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \
70 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, KC_DOWN, KC_F12, _______, KC_PGUP, KC_HOME, KC_UP, KC_END, \
71 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT \
72),
73
74/* CMOVE
75 * ,------------------------------------------------. ,------------------------------------------------.
76 * | | | | | | | | | | | | | | | |
77 * |------+------+------+------+------+------+------| |-------------+------+------+------+------+------|
78 * | | | | | | | | | | | PGUP | HOME | UP | END | |
79 * |------+------+------+------+------+------+------| |------|------+------+------+------+------+------|
80 * | | | | | | | | | | | PGDN | LEFT | DOWN | RIGHT| |
81 * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
82 * | | | | | | | | | | | | | | | |
83 * `------------------------------------------------' `------------------------------------------------'
84 */
85
86[_CMOVE] = LAYOUT( \
87 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
88 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, KC_HOME, KC_UP, KC_END, _______, \
89 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, _______, \
90 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
91),
92
93/* WIN
94 * ,------------------------------------------------. ,------------------------------------------------.
95 * | | | | | | | | | | | | | | | |
96 * |------+------+------+------+------+------+------| |-------------+------+------+------+------+------|
97 * | | | | | | | | | | | | | | | |
98 * |------+------+------+------+------+------+------| |------|------+------+------+------+------+------|
99 * | | | | | | | | | | | | | | | |
100 * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
101 * | | | | LGUI | ALT | | | | | | | ALT | | | |
102 * `------------------------------------------------' `------------------------------------------------'
103 */
104
105[_WIN] = LAYOUT( \
106 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
107 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
108 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
109 _______, _______, _______, KC_LGUI, ALT_T(KC_MHEN), _______, _______, _______, _______, ALT_T(KC_HENK), _______, _______, _______, _______ \
110),
111
112};