aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/kbd75/keymaps/adit/keymap.c107
-rw-r--r--keyboards/nyquist/keymaps/kim-kim/config.h41
-rw-r--r--keyboards/nyquist/keymaps/kim-kim/keymap.c85
-rw-r--r--keyboards/nyquist/keymaps/kim-kim/rules.mk5
-rw-r--r--keyboards/whitefox/keymaps/kim-kim/keymap.c93
-rw-r--r--keyboards/xd75/keymaps/kim-kim-xd73/Makefile21
-rw-r--r--keyboards/xd75/keymaps/kim-kim-xd73/config.h25
-rw-r--r--keyboards/xd75/keymaps/kim-kim-xd73/keymap.c141
-rw-r--r--keyboards/xd75/keymaps/kim-kim-xd73/rules.mk25
-rw-r--r--keyboards/xd75/keymaps/kim-kim/Makefile21
-rw-r--r--keyboards/xd75/keymaps/kim-kim/config.h25
-rw-r--r--keyboards/xd75/keymaps/kim-kim/keymap.c141
-rw-r--r--keyboards/xd75/keymaps/kim-kim/rules.mk25
13 files changed, 755 insertions, 0 deletions
diff --git a/keyboards/kbd75/keymaps/adit/keymap.c b/keyboards/kbd75/keymaps/adit/keymap.c
new file mode 100644
index 000000000..9cd473b64
--- /dev/null
+++ b/keyboards/kbd75/keymaps/adit/keymap.c
@@ -0,0 +1,107 @@
1#include "kbd75.h"
2#define MODS_CTRL_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5 KEYMAP(
6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_DEL,
7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_TRNS, KC_BSPC, KC_HOME,
8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP,
9 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
10 KC_LSFT, KC_TRNS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, LT(1,KC_END),
11 KC_CAPS, KC_LALT, KC_TRNS, KC_TRNS, KC_SPC, KC_TRNS, KC_RGUI, KC_TRNS, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
12
13 KEYMAP(
14 RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
15 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
16 KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
17 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
18 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, BL_DEC, BL_TOGG, BL_INC, BL_STEP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
19 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
20};
21
22const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
23
24
25 switch (id) {
26
27 }
28 return MACRO_NONE;
29}
30
31void matrix_init_user(void) {
32}
33
34void matrix_scan_user(void) {
35}
36
37bool process_record_user(uint16_t keycode, keyrecord_t *record) {
38 return true;
39}
40
41void led_set_user(uint8_t usb_led) {
42
43 if (usb_led & (1 << USB_LED_NUM_LOCK)) {
44
45 } else {
46
47 }
48
49 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
50 DDRB |= (1 << 2); PORTB &= ~(1 << 2);
51 } else {
52 DDRB &= ~(1 << 2); PORTB &= ~(1 << 2);
53 }
54
55 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
56
57 } else {
58
59 }
60
61 if (usb_led & (1 << USB_LED_COMPOSE)) {
62
63 } else {
64
65 }
66
67 if (usb_led & (1 << USB_LED_KANA)) {
68
69 } else {
70
71 }
72
73}
74
75enum function_id {
76 SHIFT_ESC,
77};
78
79const uint16_t PROGMEM fn_actions[] = {
80 [0] = ACTION_FUNCTION(SHIFT_ESC),
81};
82
83void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
84 static uint8_t shift_esc_shift_mask;
85 switch (id) {
86 case SHIFT_ESC:
87 shift_esc_shift_mask = get_mods()&MODS_CTRL_MASK;
88 if (record->event.pressed) {
89 if (shift_esc_shift_mask) {
90 add_key(KC_GRV);
91 send_keyboard_report();
92 } else {
93 add_key(KC_ESC);
94 send_keyboard_report();
95 }
96 } else {
97 if (shift_esc_shift_mask) {
98 del_key(KC_GRV);
99 send_keyboard_report();
100 } else {
101 del_key(KC_ESC);
102 send_keyboard_report();
103 }
104 }
105 break;
106 }
107}
diff --git a/keyboards/nyquist/keymaps/kim-kim/config.h b/keyboards/nyquist/keymaps/kim-kim/config.h
new file mode 100644
index 000000000..a6246262e
--- /dev/null
+++ b/keyboards/nyquist/keymaps/kim-kim/config.h
@@ -0,0 +1,41 @@
1/*
2Copyright 2017 Danny Nguyen <danny@hexwire.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#ifndef CONFIG_USER_H
19#define CONFIG_USER_H
20
21#include "config_common.h"
22
23/* Use I2C or Serial, not both */
24
25#define USE_SERIAL
26// #define USE_I2C
27
28/* Select hand configuration */
29
30#define MASTER_LEFT
31// #define _MASTER_RIGHT
32// #define EE_HANDS
33
34#undef RGBLED_NUM
35#define RGBLIGHT_ANIMATIONS
36#define RGBLED_NUM 12
37#define RGBLIGHT_HUE_STEP 8
38#define RGBLIGHT_SAT_STEP 8
39#define RGBLIGHT_VAL_STEP 8
40
41#endif \ No newline at end of file
diff --git a/keyboards/nyquist/keymaps/kim-kim/keymap.c b/keyboards/nyquist/keymaps/kim-kim/keymap.c
new file mode 100644
index 000000000..8389e8bd4
--- /dev/null
+++ b/keyboards/nyquist/keymaps/kim-kim/keymap.c
@@ -0,0 +1,85 @@
1#include "nyquist.h"
2#include "action_layer.h"
3#include "eeconfig.h"
4
5extern keymap_config_t keymap_config;
6
7// Each layer gets a name for readability, which is then used in the keymap matrix below.
8// The underscores don't mean anything - you can have a layer called STUFF or any other name.
9// Layer names don't all need to be of the same length, obviously, and you can also skip them
10// entirely and just use numbers.
11#define _QW 0
12#define _LW 1
13#define _RS 2
14
15// Fillers to make layering more clear
16#define _______ KC_TRNS
17#define XXXXXXX KC_NO
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20
21/* SPLIT QWERTY
22 * .-----------------------------------------------------------------------------------------------------------.
23 * | ESC | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | ` |
24 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
25 * | TAB | Q | W | E | R | T | Y | U | I | O | P | BSPACE |
26 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
27 * | LCTRL | A | S | D | F | G | H | J | K | L | ; | ENTER |
28 * |--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
29 * | LSHIFT | Z | X | C | V | B | N | M | < | > | / | RSHIFT |
30 * |--------+--------+--------+--------+--------+-----------------+--------+-----------------+--------+--------|
31 * | LALT | RAISE | RAISE | LGUI | SPACE | SPACE | SPACE | SPACE | RGUI | LOWER | LOWER | RALT |
32 * '-----------------------------------------------------------------------------------------------------------'
33 */
34 [_QW] = KEYMAP(
35 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV, \
36 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
37 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
38 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, \
39 KC_LALT, MO(_RS), MO(_RS), KC_LGUI, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_RGUI, MO(_LW), MO(_LW), KC_RALT \
40 ),
41
42/* Lower
43 * .-----------------------------------------------------------------------------------------------------------.
44 * | | F1 | F2 | F3 | F4 | F5 | | | | | | |
45 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
46 * | | PREV | NEXT | VOLUP | RGBTOG | F11 | | | | | | |
47 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
48 * | | PLAY | STOP | VOLDWN | RGBMOD | | | | | | | |
49 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
50 * | | | | MUTE | | | | | | | | |
51 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
52 * | | | | | | | | | | | | |
53 * '-----------------------------------------------------------------------------------------------------------'
54 */
55[_LW] = KEYMAP( \
56 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, _______, _______, _______, _______, \
57 _______, KC_MPRV, KC_MNXT, KC_VOLU, RGB_TOG, KC_F11, _______, _______, _______, _______, _______, _______, \
58 _______, KC_MPLY, KC_MSTP, KC_VOLD, RGB_SMOD, _______, _______, _______, _______, _______, _______, _______, \
59 _______, _______, _______, KC_MUTE, _______, _______, _______, _______, _______, _______, _______, _______, \
60 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
61),
62
63/* Raise
64 * .-----------------------------------------------------------------------------------------------------------.
65 * | | | | | | | F6 | F7 | F8 | F9 | F10 | DELETE |
66 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
67 * | | | | | | | F12 | [ | ] | - | = | \ |
68 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
69 * | | | | | | | PRTSCR | LEFT | DOWN | UP | RIGHT | |
70 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
71 * | | | | | | | | HOME | PGDN | PGUP | END | |
72 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+--------|
73 * | | | | | | | | | | | | |
74 * '-----------------------------------------------------------------------------------------------------------'
75 */
76[_RS] = KEYMAP( \
77 _______, _______, _______, _______, _______, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL, \
78 _______, _______, _______, _______, _______, _______, KC_F12, KC_LBRC, KC_RBRC, KC_MINS, KC_EQL, KC_BSLS, \
79 _______, _______, _______, _______, _______, _______, KC_PSCR, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, \
80 _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, \
81 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
82)
83
84
85};
diff --git a/keyboards/nyquist/keymaps/kim-kim/rules.mk b/keyboards/nyquist/keymaps/kim-kim/rules.mk
new file mode 100644
index 000000000..1e5761278
--- /dev/null
+++ b/keyboards/nyquist/keymaps/kim-kim/rules.mk
@@ -0,0 +1,5 @@
1RGBLIGHT_ENABLE = yes
2
3ifndef QUANTUM_DIR
4 include ../../../../Makefile
5endif
diff --git a/keyboards/whitefox/keymaps/kim-kim/keymap.c b/keyboards/whitefox/keymaps/kim-kim/keymap.c
new file mode 100644
index 000000000..94ef0e7a6
--- /dev/null
+++ b/keyboards/whitefox/keymaps/kim-kim/keymap.c
@@ -0,0 +1,93 @@
1/*
2Copyright 2017 Lukmanul Hakim <lukmanulhakim14@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18/* NOTE : This is compatible to TrueFox Layout only */
19
20#include "whitefox.h"
21
22// Fillers to make layering more clear
23#define _______ KC_TRNS
24#define ___T___ KC_TRNS
25#define XXXXXXX KC_NO
26
27const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
28 /* Layer 0: Default Layer
29 * ,----------------------------------------------------------------.
30 * |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \| `|Pscr|
31 * |----------------------------------------------------------------|
32 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]|Backs|Del |
33 * |----------------------------------------------------------------|
34 * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '|Enter |PgUp|
35 * |----------------------------------------------------------------|
36 * |Shif| | Z| X| C| V| B| N| M| ,| .| /|Shift |Up |PgDn|
37 * |----------------------------------------------------------------|
38 * |Alt|Fn0 |Gui | Space |Gui |Alt | | |Lef|Dow|Rght|
39 * `----------------------------------------------------------------'
40 */
41 [0] = KEYMAP( \
42 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSLS,KC_GRV, KC_PSCR,\
43 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC,KC_BSPC, KC_DEL, \
44 KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT,KC_NUHS,KC_ENT, KC_PGUP,\
45 KC_LSFT,XXXXXXX,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH,KC_RSFT, KC_UP, KC_PGDN,\
46 KC_LALT,KC_FN0,KC_LGUI, KC_SPC, KC_RGUI,KC_RALT, XXXXXXX, KC_LEFT,KC_DOWN,KC_RGHT \
47 ),
48 [1] = KEYMAP( \
49 _______,KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______,_______,_______,\
50 _______,KC_MPRV,KC_MNXT,KC_VOLU,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______ , BL_TOGG ,\
51 _______,KC_MPLY,KC_MSTP,KC_VOLD,_______,_______,_______,_______,_______,_______,_______,_______,_______,RESET, BL_INC,\
52 _______,_______,_______,KC_MUTE,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,BL_DEC,\
53 _______,_______,_______, _______, _______,_______,_______, KC_HOME,_______,KC_END \
54 ),
55};
56
57/* Give numbers some descriptive names */
58#define ACTION_LEDS_ALL 1
59#define ACTION_LEDS_GAME 2
60
61const uint16_t fn_actions[] = {
62 [0] = ACTION_LAYER_MOMENTARY(1),
63 [1] = ACTION_LAYER_MOMENTARY(2),
64 [2] = ACTION_FUNCTION(ACTION_LEDS_ALL),
65 [3] = ACTION_FUNCTION(ACTION_LEDS_GAME),
66
67 [4] = ACTION_USAGE_CONSUMER(0x1B4),
68 [5] = ACTION_USAGE_CONSUMER(0x196),
69 [6] = ACTION_USAGE_CONSUMER(0x1A6),
70 [7] = ACTION_USAGE_CONSUMER(0x1A0),
71
72};
73
74/* custom action function */
75void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
76 /*
77 (void)opt;
78 switch(id) {
79 case ACTION_LEDS_ALL:
80 if(record->event.pressed) {
81 // signal the LED controller thread
82 chMBPost(&led_mailbox, LED_MSG_GAME_TOGGLE, TIME_IMMEDIATE);
83 }
84 break;
85 case ACTION_LEDS_GAME:
86 if(record->event.pressed) {
87 // signal the LED controller thread
88 chMBPost(&led_mailbox, LED_MSG_ALL_TOGGLE, TIME_IMMEDIATE);
89 }
90 break;
91 }
92 */
93}
diff --git a/keyboards/xd75/keymaps/kim-kim-xd73/Makefile b/keyboards/xd75/keymaps/kim-kim-xd73/Makefile
new file mode 100644
index 000000000..d993e2ef8
--- /dev/null
+++ b/keyboards/xd75/keymaps/kim-kim-xd73/Makefile
@@ -0,0 +1,21 @@
1# Copyright 2013 Jun Wako <wakojun@gmail.com>
2#
3# This program is free software: you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation, either version 2 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16
17ifndef QUANTUM_DIR
18 include ../../../../Makefile
19endif
20
21BACKLIGHT_ENABLE = yes
diff --git a/keyboards/xd75/keymaps/kim-kim-xd73/config.h b/keyboards/xd75/keymaps/kim-kim-xd73/config.h
new file mode 100644
index 000000000..e2390f770
--- /dev/null
+++ b/keyboards/xd75/keymaps/kim-kim-xd73/config.h
@@ -0,0 +1,25 @@
1/* Copyright 2017 REPLACE_WITH_YOUR_NAME
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#ifndef CONFIG_USER_H
18#define CONFIG_USER_H
19
20#include QMK_KEYBOARD_CONFIG_H
21
22// place overrides here
23#undef BACKLIGHT_BREATHING
24
25#endif
diff --git a/keyboards/xd75/keymaps/kim-kim-xd73/keymap.c b/keyboards/xd75/keymaps/kim-kim-xd73/keymap.c
new file mode 100644
index 000000000..19f13ed32
--- /dev/null
+++ b/keyboards/xd75/keymaps/kim-kim-xd73/keymap.c
@@ -0,0 +1,141 @@
1/* Copyright 2017 Lukmanul Hakim
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18// Fillers to make layering more clear
19#define _______ KC_TRNS
20#define ___T___ KC_TRNS
21#define XXXXXXX KC_NO
22
23// Layer shorthand
24#define _QW 0
25#define _LW 1
26#define _RS 2
27#define _RT 3
28
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30
31/* SPLIT QWERTY
32 * .--------------------------------------------------------------------------------------------------------------------------------------.
33 * | ESC | 1 | 2 | 3 | 4 | 5 | NUM/ | NUM* | NUM- | 6 | 7 | 8 | 9 | 0 | ` |
34 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
35 * | TAB | Q | W | E | R | T | NUM7 | NUM8 | NUM9 | Y | U | I | O | P | BSPACE |
36 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
37 * | LCTRL | A | S | D | F | G | NUM4 | NUM5 | NUM6 | H | J | K | L | ; | ENTER |
38 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
39 * | LSHIFT | Z | X | C | V | B | NUM1 | NUM2 | NUM3 | N | M | < | > | / | RSHIFT |
40 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------|
41 * | | LALT | RAISE | LGUI | SPACE | SPACE | NUM+ | NUM0 | NUM. | SPACE | SPACE | RGUI | LOWER | RALT | |
42 * '--------------------------------------------------------------------------------------------------------------------------------------'
43 */
44
45 [_QW] = { /* SPLIT QWERTY */
46 { KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_PSLS, KC_PAST, KC_PMNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV },
47 { KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_P7, KC_P8, KC_P9, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC },
48 { KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_P4, KC_P5, KC_P6, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT },
49 { KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_P1, KC_P2, KC_P3, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT },
50 { _______, KC_LALT, MO(_RS), KC_LGUI, KC_SPC, KC_SPC, KC_PPLS, KC_P0, KC_PDOT, KC_SPC, KC_SPC, KC_RGUI, MO(_LW), KC_RALT, _______ },
51 },
52
53/* LOWERED
54 * .--------------------------------------------------------------------------------------------------------------------------------------.
55 * | | F1 | F2 | F3 | F4 | F5 | F11 | | | | | | | | |
56 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
57 * | | PREV | NEXT | VOLUP | | | | | | | | | | | |
58 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
59 * | | PLAY | STOP | VOLDWN | | | | | | | | | | | |
60 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
61 * | | | | MUTE | | | | | | | | | | | |
62 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------|
63 * | | | | | | | | | | | | | | | |
64 * '--------------------------------------------------------------------------------------------------------------------------------------'
65 */
66
67 [_LW] = { /* LOWERED */
68 { _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F11, _______, _______, _______, _______, _______, _______, _______, _______ },
69 { _______, KC_MPRV, KC_MNXT, KC_VOLU, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
70 { _______, KC_MPLY, KC_MSTP, KC_VOLD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
71 { _______, _______, _______, KC_MUTE, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
72 { _______, MO(_RT), MO(_RT), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
73 },
74
75/* RAISED
76 * .--------------------------------------------------------------------------------------------------------------------------------------.
77 * | | | | | | | | | F12 | F6 | F7 | F8 | F9 | F10 | DELETE |
78 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
79 * | | | | | | | | | PRTSCR | | [ | ] | - | = | \ |
80 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
81 * | | | | | | | | | BACKL+ | | LEFT | DOWN | UP | RIGHT | |
82 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
83 * | | | | | | | | | BACKL- | | HOME | PGDN | PGUP | END | |
84 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------|
85 * | | | | | | | | | | | | | | | |
86 * '--------------------------------------------------------------------------------------------------------------------------------------'
87 */
88
89 [_RS] = { /* RAISED */
90 { _______, _______, _______, _______, _______, _______, _______, _______, KC_F12, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL },
91 { _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, _______, KC_LBRC, KC_RBRC, KC_MINS, KC_EQL, KC_BSLS },
92 { _______, _______, _______, _______, _______, _______, _______, _______, BL_INC, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______ },
93 { _______, _______, _______, _______, _______, _______, _______, _______, BL_DEC, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______ },
94 { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, MO(_RT), MO(_RT), _______ },
95 },
96
97/* RESET
98 * .--------------------------------------------------------------------------------------------------------------------------------------.
99 * | | | | | | | | | | | | | | | |
100 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
101 * | | | | | | | | | | | | | | | |
102 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
103 * | | | | | | | | RESET | | | | | | | |
104 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
105 * | | | | | | | | | | | | | | | |
106 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------|
107 * | | | | | | | | | | | | | | | |
108 * '--------------------------------------------------------------------------------------------------------------------------------------'
109 */
110
111 [_RT] = { /* RESET */
112 { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
113 { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
114 { _______, _______, _______, _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______ },
115 { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
116 { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
117 }
118
119};
120
121const uint16_t PROGMEM fn_actions[] = {
122
123};
124
125const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
126{
127 // MACRODOWN only works in this function
128 switch(id) {
129 case 0:
130 if (record->event.pressed) {
131 #ifdef BACKLIGHT_ENABLE
132
133 #endif
134 } else {
135 #ifdef BACKLIGHT_ENABLE
136
137 #endif
138 }
139 }
140 return MACRO_NONE;
141};
diff --git a/keyboards/xd75/keymaps/kim-kim-xd73/rules.mk b/keyboards/xd75/keymaps/kim-kim-xd73/rules.mk
new file mode 100644
index 000000000..7e4ed0837
--- /dev/null
+++ b/keyboards/xd75/keymaps/kim-kim-xd73/rules.mk
@@ -0,0 +1,25 @@
1# Copyright 2013 Jun Wako <wakojun@gmail.com>
2#
3# This program is free software: you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation, either version 2 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16
17# QMK Build Options
18# change to "no" to disable the options, or define them in the Makefile in
19# the appropriate keymap folder that will get included automatically
20#
21BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
22
23ifndef QUANTUM_DIR
24 include ../../../../Makefile
25endif
diff --git a/keyboards/xd75/keymaps/kim-kim/Makefile b/keyboards/xd75/keymaps/kim-kim/Makefile
new file mode 100644
index 000000000..d993e2ef8
--- /dev/null
+++ b/keyboards/xd75/keymaps/kim-kim/Makefile
@@ -0,0 +1,21 @@
1# Copyright 2013 Jun Wako <wakojun@gmail.com>
2#
3# This program is free software: you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation, either version 2 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16
17ifndef QUANTUM_DIR
18 include ../../../../Makefile
19endif
20
21BACKLIGHT_ENABLE = yes
diff --git a/keyboards/xd75/keymaps/kim-kim/config.h b/keyboards/xd75/keymaps/kim-kim/config.h
new file mode 100644
index 000000000..e2390f770
--- /dev/null
+++ b/keyboards/xd75/keymaps/kim-kim/config.h
@@ -0,0 +1,25 @@
1/* Copyright 2017 REPLACE_WITH_YOUR_NAME
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#ifndef CONFIG_USER_H
18#define CONFIG_USER_H
19
20#include QMK_KEYBOARD_CONFIG_H
21
22// place overrides here
23#undef BACKLIGHT_BREATHING
24
25#endif
diff --git a/keyboards/xd75/keymaps/kim-kim/keymap.c b/keyboards/xd75/keymaps/kim-kim/keymap.c
new file mode 100644
index 000000000..85c000230
--- /dev/null
+++ b/keyboards/xd75/keymaps/kim-kim/keymap.c
@@ -0,0 +1,141 @@
1/* Copyright 2017 Lukmanul Hakim
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18// Fillers to make layering more clear
19#define _______ KC_TRNS
20#define ___T___ KC_TRNS
21#define XXXXXXX KC_NO
22
23// Layer shorthand
24#define _QW 0
25#define _LW 1
26#define _RS 2
27#define _RT 3
28
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30
31/* SPLIT QWERTY
32 * .--------------------------------------------------------------------------------------------------------------------------------------.
33 * | ESC | 1 | 2 | 3 | 4 | 5 | NUM/ | NUM* | NUM- | 6 | 7 | 8 | 9 | 0 | ` |
34 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
35 * | TAB | Q | W | E | R | T | NUM7 | NUM8 | NUM9 | Y | U | I | O | P | BSPACE |
36 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
37 * | LCTRL | A | S | D | F | G | NUM4 | NUM5 | NUM6 | H | J | K | L | ; | ENTER |
38 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
39 * | LSHIFT | Z | X | C | V | B | NUM1 | NUM2 | NUM3 | N | M | < | > | / | RSHIFT |
40 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------|
41 * | LALT | RAISE | RAISE | LGUI | SPACE | SPACE | NUM+ | NUM0 | NUM. | SPACE | SPACE | RGUI | LOWER | LOWER | RALT |
42 * '--------------------------------------------------------------------------------------------------------------------------------------'
43 */
44
45 [_QW] = { /* SPLIT QWERTY */
46 { KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_PSLS, KC_PAST, KC_PMNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV },
47 { KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_P7, KC_P8, KC_P9, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC },
48 { KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_P4, KC_P5, KC_P6, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT },
49 { KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_P1, KC_P2, KC_P3, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT },
50 { KC_LALT, MO(_RS), MO(_RS), KC_LGUI, KC_SPC, KC_SPC, KC_PPLS, KC_P0, KC_PDOT, KC_SPC, KC_SPC, KC_RGUI, MO(_LW), MO(_LW), KC_RALT },
51 },
52
53/* LOWERED
54 * .--------------------------------------------------------------------------------------------------------------------------------------.
55 * | | F1 | F2 | F3 | F4 | F5 | F11 | | | | | | | | |
56 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
57 * | | PREV | NEXT | VOLUP | | | RGBTOG | | | | | | | | |
58 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
59 * | | PLAY | STOP | VOLDWN | | | RGBMOD | | | | | | | | |
60 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
61 * | | | | MUTE | | | | | | | | | | | |
62 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------|
63 * | | | | | | | | | | | | | | | |
64 * '--------------------------------------------------------------------------------------------------------------------------------------'
65 */
66
67 [_LW] = { /* LOWERED */
68 { _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F11, _______, _______, _______, _______, _______, _______, _______, _______ },
69 { _______, KC_MPRV, KC_MNXT, KC_VOLU, _______, _______, RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______ },
70 { _______, KC_MPLY, KC_MSTP, KC_VOLD, _______, _______, RGB_SMOD, _______, _______, _______, _______, _______, _______, _______, _______ },
71 { _______, _______, _______, KC_MUTE, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
72 { _______, MO(_RT), MO(_RT), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
73 },
74
75/* RAISED
76 * .--------------------------------------------------------------------------------------------------------------------------------------.
77 * | | | | | | | | | F12 | F6 | F7 | F8 | F9 | F10 | DELETE |
78 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
79 * | | | | | | | | | PRTSCR | | [ | ] | - | = | \ |
80 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
81 * | | | | | | | | | BACKL+ | | LEFT | DOWN | UP | RIGHT | |
82 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
83 * | | | | | | | | | BACKL- | | HOME | PGDN | PGUP | END | |
84 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------|
85 * | | | | | | | | | | | | | | | |
86 * '--------------------------------------------------------------------------------------------------------------------------------------'
87 */
88
89 [_RS] = { /* RAISED */
90 { _______, _______, _______, _______, _______, _______, _______, _______, KC_F12, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL },
91 { _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, _______, KC_LBRC, KC_RBRC, KC_MINS, KC_EQL, KC_BSLS },
92 { _______, _______, _______, _______, _______, _______, _______, _______, BL_INC, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______ },
93 { _______, _______, _______, _______, _______, _______, _______, _______, BL_DEC, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______ },
94 { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, MO(_RT), MO(_RT), _______ },
95 },
96
97/* RESET
98 * .--------------------------------------------------------------------------------------------------------------------------------------.
99 * | | | | | | | | | | | | | | | |
100 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
101 * | | | | | | | | | | | | | | | |
102 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
103 * | | | | | | | | RESET | | | | | | | |
104 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
105 * | | | | | | | | | | | | | | | |
106 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------|
107 * | | | | | | | | | | | | | | | |
108 * '--------------------------------------------------------------------------------------------------------------------------------------'
109 */
110
111 [_RT] = { /* RESET */
112 { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
113 { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
114 { _______, _______, _______, _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______ },
115 { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
116 { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ },
117 }
118
119};
120
121const uint16_t PROGMEM fn_actions[] = {
122
123};
124
125const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
126{
127 // MACRODOWN only works in this function
128 switch(id) {
129 case 0:
130 if (record->event.pressed) {
131 #ifdef BACKLIGHT_ENABLE
132
133 #endif
134 } else {
135 #ifdef BACKLIGHT_ENABLE
136
137 #endif
138 }
139 }
140 return MACRO_NONE;
141};
diff --git a/keyboards/xd75/keymaps/kim-kim/rules.mk b/keyboards/xd75/keymaps/kim-kim/rules.mk
new file mode 100644
index 000000000..7e4ed0837
--- /dev/null
+++ b/keyboards/xd75/keymaps/kim-kim/rules.mk
@@ -0,0 +1,25 @@
1# Copyright 2013 Jun Wako <wakojun@gmail.com>
2#
3# This program is free software: you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation, either version 2 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16
17# QMK Build Options
18# change to "no" to disable the options, or define them in the Makefile in
19# the appropriate keymap folder that will get included automatically
20#
21BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
22
23ifndef QUANTUM_DIR
24 include ../../../../Makefile
25endif