summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÁlvaro Cortés <alvarocortesdevesa@gmail.com>2022-04-19 12:32:11 +0200
committerGitHub <noreply@github.com>2022-04-19 20:32:11 +1000
commit50ec365806adb43ab5e99cfd181b840b17c24259 (patch)
tree55d4a8eab0ee8698f60b7ae7884ca75e3c8c085c
parentbde724e1249a696c070f4ce12964be1ea6d43ead (diff)
downloadqmk_firmware-50ec365806adb43ab5e99cfd181b840b17c24259.tar.gz
qmk_firmware-50ec365806adb43ab5e99cfd181b840b17c24259.zip
[Keymap] A Colemak keymap for the crkbd keyboard (#16550)
-rw-r--r--keyboards/crkbd/keymaps/colemad/config.h30
-rw-r--r--keyboards/crkbd/keymaps/colemad/glcdfont.c234
-rw-r--r--keyboards/crkbd/keymaps/colemad/keycodes.h24
-rw-r--r--keyboards/crkbd/keymaps/colemad/keymap.c66
-rw-r--r--keyboards/crkbd/keymaps/colemad/layers.h10
-rw-r--r--keyboards/crkbd/keymaps/colemad/oled.c128
-rw-r--r--keyboards/crkbd/keymaps/colemad/oled.h13
-rw-r--r--keyboards/crkbd/keymaps/colemad/process_records.c21
-rw-r--r--keyboards/crkbd/keymaps/colemad/process_records.h5
-rw-r--r--keyboards/crkbd/keymaps/colemad/readme.md106
-rw-r--r--keyboards/crkbd/keymaps/colemad/rules.mk21
-rw-r--r--keyboards/crkbd/keymaps/colemad/tap_dances.c7
-rw-r--r--keyboards/crkbd/keymaps/colemad/tap_dances.h11
13 files changed, 676 insertions, 0 deletions
diff --git a/keyboards/crkbd/keymaps/colemad/config.h b/keyboards/crkbd/keymaps/colemad/config.h
new file mode 100644
index 0000000000..6d2050e148
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/config.h
@@ -0,0 +1,30 @@
+// Copyright 2022 Álvaro Cortés (@ACortesDev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+#define TAPPING_FORCE_HOLD
+#define TAPPING_TERM 200
+
+#ifdef RGB_MATRIX_ENABLE
+ #define RGB_MATRIX_KEYPRESSES
+ #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
+ #define RGB_DISABLE_WHEN_USB_SUSPENDED
+ #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
+ #define RGB_MATRIX_LED_FLUSH_LIMIT 16
+ #define RGB_MATRIX_HUE_STEP 8
+ #define RGB_MATRIX_SAT_STEP 8
+ #define RGB_MATRIX_VAL_STEP 5
+ #define RGB_MATRIX_SPD_STEP 10
+
+ // Effects
+ #define ENABLE_RGB_MATRIX_BREATHING
+#endif
+
+#ifdef OLED_ENABLE
+ #define SPLIT_LAYER_STATE_ENABLE
+ #define SPLIT_LED_STATE_ENABLE
+ #define SPLIT_MODS_ENABLE
+ #define SPLIT_OLED_ENABLE
+ #define OLED_TIMEOUT 60000
+ #define OLED_FONT_H "keyboards/crkbd/keymaps/colemad/glcdfont.c"
+#endif
diff --git a/keyboards/crkbd/keymaps/colemad/glcdfont.c b/keyboards/crkbd/keymaps/colemad/glcdfont.c
new file mode 100644
index 0000000000..3bf950e162
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/glcdfont.c
@@ -0,0 +1,234 @@
+// Copyright 2022 Álvaro Cortés (@ACortesDev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#include "progmem.h"
+
+// Corne 8x6 font with QMK Firmware Logo
+// Online editor: https://helixfonteditor.netlify.com/
+// See also: https://github.com/soundmonster/glcdfont_converter
+
+const unsigned char font[] PROGMEM = {
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
+ 0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00,
+ 0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00,
+ 0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00,
+ 0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00,
+ 0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00,
+ 0x00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0x7F, 0x2A, 0x12, 0x00,
+ 0x23, 0x13, 0x08, 0x64, 0x62, 0x00,
+ 0x36, 0x49, 0x56, 0x20, 0x50, 0x00,
+ 0x00, 0x08, 0x07, 0x03, 0x00, 0x00,
+ 0x00, 0x1C, 0x22, 0x41, 0x00, 0x00,
+ 0x00, 0x41, 0x22, 0x1C, 0x00, 0x00,
+ 0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00,
+ 0x08, 0x08, 0x3E, 0x08, 0x08, 0x00,
+ 0x00, 0x80, 0x70, 0x30, 0x00, 0x00,
+ 0x08, 0x08, 0x08, 0x08, 0x08, 0x00,
+ 0x00, 0x00, 0x60, 0x60, 0x00, 0x00,
+ 0x20, 0x10, 0x08, 0x04, 0x02, 0x00,
+ 0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00,
+ 0x00, 0x42, 0x7F, 0x40, 0x00, 0x00,
+ 0x72, 0x49, 0x49, 0x49, 0x46, 0x00,
+ 0x21, 0x41, 0x49, 0x4D, 0x33, 0x00,
+ 0x18, 0x14, 0x12, 0x7F, 0x10, 0x00,
+ 0x27, 0x45, 0x45, 0x45, 0x39, 0x00,
+ 0x3C, 0x4A, 0x49, 0x49, 0x31, 0x00,
+ 0x41, 0x21, 0x11, 0x09, 0x07, 0x00,
+ 0x36, 0x49, 0x49, 0x49, 0x36, 0x00,
+ 0x46, 0x49, 0x49, 0x29, 0x1E, 0x00,
+ 0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
+ 0x00, 0x40, 0x34, 0x00, 0x00, 0x00,
+ 0x00, 0x08, 0x14, 0x22, 0x41, 0x00,
+ 0x14, 0x14, 0x14, 0x14, 0x14, 0x00,
+ 0x00, 0x41, 0x22, 0x14, 0x08, 0x00,
+ 0x02, 0x01, 0x59, 0x09, 0x06, 0x00,
+ 0x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00,
+ 0x7C, 0x12, 0x11, 0x12, 0x7C, 0x00,
+ 0x7F, 0x49, 0x49, 0x49, 0x36, 0x00,
+ 0x3E, 0x41, 0x41, 0x41, 0x22, 0x00,
+ 0x7F, 0x41, 0x41, 0x41, 0x3E, 0x00,
+ 0x7F, 0x49, 0x49, 0x49, 0x41, 0x00,
+ 0x7F, 0x09, 0x09, 0x09, 0x01, 0x00,
+ 0x3E, 0x41, 0x41, 0x51, 0x73, 0x00,
+ 0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00,
+ 0x00, 0x41, 0x7F, 0x41, 0x00, 0x00,
+ 0x20, 0x40, 0x41, 0x3F, 0x01, 0x00,
+ 0x7F, 0x08, 0x14, 0x22, 0x41, 0x00,
+ 0x7F, 0x40, 0x40, 0x40, 0x40, 0x00,
+ 0x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00,
+ 0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00,
+ 0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00,
+ 0x7F, 0x09, 0x09, 0x09, 0x06, 0x00,
+ 0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00,
+ 0x7F, 0x09, 0x19, 0x29, 0x46, 0x00,
+ 0x26, 0x49, 0x49, 0x49, 0x32, 0x00,
+ 0x03, 0x01, 0x7F, 0x01, 0x03, 0x00,
+ 0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00,
+ 0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00,
+ 0x3F, 0x40, 0x38, 0x40, 0x3F, 0x00,
+ 0x63, 0x14, 0x08, 0x14, 0x63, 0x00,
+ 0x03, 0x04, 0x78, 0x04, 0x03, 0x00,
+ 0x61, 0x59, 0x49, 0x4D, 0x43, 0x00,
+ 0x00, 0x7F, 0x41, 0x41, 0x41, 0x00,
+ 0x02, 0x04, 0x08, 0x10, 0x20, 0x00,
+ 0x00, 0x41, 0x41, 0x41, 0x7F, 0x00,
+ 0x04, 0x02, 0x01, 0x02, 0x04, 0x00,
+ 0x40, 0x40, 0x40, 0x40, 0x40, 0x00,
+ 0x00, 0x03, 0x07, 0x08, 0x00, 0x00,
+ 0x20, 0x54, 0x54, 0x78, 0x40, 0x00,
+ 0x7F, 0x28, 0x44, 0x44, 0x38, 0x00,
+ 0x38, 0x44, 0x44, 0x44, 0x28, 0x00,
+ 0x38, 0x44, 0x44, 0x28, 0x7F, 0x00,
+ 0x38, 0x54, 0x54, 0x54, 0x18, 0x00,
+ 0x00, 0x08, 0x7E, 0x09, 0x02, 0x00,
+ 0x18, 0x24, 0x24, 0x1C, 0x78, 0x00,
+ 0x7F, 0x08, 0x04, 0x04, 0x78, 0x00,
+ 0x00, 0x44, 0x7D, 0x40, 0x00, 0x00,
+ 0x20, 0x40, 0x40, 0x3D, 0x00, 0x00,
+ 0x7F, 0x10, 0x28, 0x44, 0x00, 0x00,
+ 0x00, 0x41, 0x7F, 0x40, 0x00, 0x00,
+ 0x7C, 0x04, 0x78, 0x04, 0x78, 0x00,
+ 0x7C, 0x08, 0x04, 0x04, 0x78, 0x00,
+ 0x38, 0x44, 0x44, 0x44, 0x38, 0x00,
+ 0x7C, 0x18, 0x24, 0x24, 0x18, 0x00,
+ 0x18, 0x24, 0x24, 0x18, 0x7C, 0x00,
+ 0x7C, 0x08, 0x04, 0x04, 0x08, 0x00,
+ 0x48, 0x54, 0x54, 0x54, 0x24, 0x00,
+ 0x04, 0x04, 0x3F, 0x44, 0x24, 0x00,
+ 0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00,
+ 0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00,
+ 0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00,
+ 0x44, 0x28, 0x10, 0x28, 0x44, 0x00,
+ 0x4C, 0x90, 0x90, 0x90, 0x7C, 0x00,
+ 0x44, 0x64, 0x54, 0x4C, 0x44, 0x00,
+ 0x00, 0x08, 0x36, 0x41, 0x00, 0x00,
+ 0x00, 0x00, 0x77, 0x00, 0x00, 0x00,
+ 0x00, 0x41, 0x36, 0x08, 0x00, 0x00,
+ 0x02, 0x01, 0x02, 0x04, 0x02, 0x00,
+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0x00, 0x00, 0x01, 0x01, 0x02, 0x02,
+ 0x04, 0x04, 0x08, 0x08, 0x04, 0x04,
+ 0x02, 0x02, 0x01, 0x01, 0x00, 0x00,
+ 0x00, 0x00, 0x01, 0x01, 0x03, 0x03,
+ 0x07, 0x07, 0x0F, 0x0F, 0x07, 0x07,
+ 0x03, 0x03, 0x01, 0x01, 0x00, 0x00,
+ 0x00, 0x00, 0x01, 0x01, 0x03, 0x02,
+ 0x05, 0x06, 0x0D, 0x0A, 0x05, 0x06,
+ 0x03, 0x02, 0x01, 0x01, 0x00, 0x00,
+};
diff --git a/keyboards/crkbd/keymaps/colemad/keycodes.h b/keyboards/crkbd/keymaps/colemad/keycodes.h
new file mode 100644
index 0000000000..6497f1662b
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/keycodes.h
@@ -0,0 +1,24 @@
+// Copyright 2022 Álvaro Cortés (@ACortesDev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+#include QMK_KEYBOARD_H
+#include "layers.h"
+
+/* Tap-Hold keycodes */
+#define KC_LOWER LT(_LOWER, KC_ENT) /* Tap for Enter, Hold for LOWER layer */
+#define KC_RAISE LT(_RAISE, KC_SPC) /* Tap for Space, Hold for RAISE layer */
+
+/* Tap Dance keycodes */
+#if defined(TAP_DANCE_ENABLE)
+ #include "tap_dances.h"
+ #define KC_T_SFT T_SFT /* Single tap for Shift, Double tap for CAPS Lock */
+#else
+ #define KC_T_SFT KC_LSFT
+#endif
+
+/* Macros */
+enum custom_keycodes {
+ VSCTERM = SAFE_RANGE,
+ CHNLANG
+};
diff --git a/keyboards/crkbd/keymaps/colemad/keymap.c b/keyboards/crkbd/keymaps/colemad/keymap.c
new file mode 100644
index 0000000000..fb951370f2
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/keymap.c
@@ -0,0 +1,66 @@
+// Copyright 2022 Álvaro Cortés (@ACortesDev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#include QMK_KEYBOARD_H
+
+#include "layers.h"
+#include "keycodes.h"
+#include "process_records.h"
+
+#ifdef OLED_ENABLE
+ #include "oled.h"
+#endif
+
+/* Layer keymaps */
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_COLEMAK] = LAYOUT(
+ //,-----------------------------------------------------. ,-----------------------------------------------------.
+ KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSLS,
+ //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ KC_BSPC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
+ //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ T_SFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ESC,
+ //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ KC_LALT, KC_LCTL,KC_RAISE, KC_LOWER, T_SFT, KC_LGUI
+ // `-------------------------' `--------------------------'
+ ),
+
+ [_LOWER] = LAYOUT(
+ //,-----------------------------------------------------. ,-----------------------------------------------------.
+ _______, KC_0, KC_1, KC_2, KC_3, KC_MINS, KC_PGUP, KC_HOME, KC_UP, KC_END, KC_ESC, XXXXXXX,
+ //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ _______, KC_SLSH, KC_4, KC_5, KC_6, KC_PLUS, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, KC_DEL, XXXXXXX,
+ //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ _______, KC_ASTR, KC_7, KC_8, KC_9, KC_EQL, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
+ //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ _______, _______, _______, _______, _______, _______
+ // `-------------------------' `--------------------------'
+ ),
+
+ [_RAISE] = LAYOUT(
+ //,-----------------------------------------------------. ,-----------------------------------------------------.
+ _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_F11,
+ //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_GRV, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_F12,
+ //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_TILD, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______,
+ //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ _______, _______, _______, _______, _______, _______
+ // `-------------------------' `--------------------------'
+ ),
+
+ [_ADJUST] = LAYOUT(
+ //,-----------------------------------------------------. ,-----------------------------------------------------.
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI,
+ //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ XXXXXXX, XXXXXXX, VSCTERM, KC_PSCR, CHNLANG, XXXXXXX, XXXXXXX,RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD,
+ //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
+ //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ XXXXXXX, XXXXXXX, _______, _______, XXXXXXX, XXXXXXX
+ // `-------------------------' `--------------------------'
+ )
+};
+
+layer_state_t layer_state_set_user(layer_state_t state) {
+ return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
+}
diff --git a/keyboards/crkbd/keymaps/colemad/layers.h b/keyboards/crkbd/keymaps/colemad/layers.h
new file mode 100644
index 0000000000..f569ad156e
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/layers.h
@@ -0,0 +1,10 @@
+// Copyright 2022 Álvaro Cortés (@ACortesDev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+enum custom_layers {
+ _COLEMAK,
+ _LOWER,
+ _RAISE,
+ _ADJUST,
+};
diff --git a/keyboards/crkbd/keymaps/colemad/oled.c b/keyboards/crkbd/keymaps/colemad/oled.c
new file mode 100644
index 0000000000..8c5591184e
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/oled.c
@@ -0,0 +1,128 @@
+// Copyright 2022 Álvaro Cortés (@ACortesDev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#include QMK_KEYBOARD_H
+#include "layers.h"
+#include "oled.h"
+
+oled_rotation_t oled_init_user(oled_rotation_t rotation) {
+ return OLED_ROTATION_270;
+}
+
+void render_layer_symbol(void) {
+ static const char PROGMEM default_layer[] = {
+ 0x20, 0x94, 0x95, 0x96, 0x20,
+ 0x20, 0xb4, 0xb5, 0xb6, 0x20,
+ 0x20, 0xd4, 0xd5, 0xd6, 0x20, 0};
+ static const char PROGMEM raise_layer[] = {
+ 0x20, 0x97, 0x98, 0x99, 0x20,
+ 0x20, 0xb7, 0xb8, 0xb9, 0x20,
+ 0x20, 0xd7, 0xd8, 0xd9, 0x20, 0};
+ static const char PROGMEM lower_layer[] = {
+ 0x20, 0x9a, 0x9b, 0x9c, 0x20,
+ 0x20, 0xba, 0xbb, 0xbc, 0x20,
+ 0x20, 0xda, 0xdb, 0xdc, 0x20, 0};
+ static const char PROGMEM adjust_layer[] = {
+ 0x20, 0x9d, 0x9e, 0x9f, 0x20,
+ 0x20, 0xbd, 0xbe, 0xbf, 0x20,
+ 0x20, 0xdd, 0xde, 0xdf, 0x20, 0};
+ if(layer_state_is(_ADJUST)) {
+ oled_write_P(adjust_layer, false);
+ } else if(layer_state_is(_LOWER)) {
+ oled_write_P(lower_layer, false);
+ } else if(layer_state_is(_RAISE)) {
+ oled_write_P(raise_layer, false);
+ } else {
+ oled_write_P(default_layer, false);
+ }
+}
+
+void render_layer_name(void) {
+ bool lower = layer_state_is(_LOWER) & !layer_state_is(_ADJUST);
+ bool raise = layer_state_is(_RAISE) & !layer_state_is(_ADJUST);
+ bool adjust = layer_state_is(_ADJUST);
+
+ if(lower){
+ oled_write_P(PSTR("LOWER"), false);
+ } else if(raise){
+ oled_write_P(PSTR("RAISE"), false);
+ } else if(adjust){
+ oled_write_P(PSTR(" ADJ "), false);
+ } else {
+ oled_write_P(PSTR(" "), false);
+ }
+}
+
+void render_mod_state(uint8_t modifiers) {
+ static const char PROGMEM shift_line_1[] = {
+ 0x85, 0x86, 0x87, 0};
+ static const char PROGMEM shift_line_2[] = {
+ 0xa5, 0xa6, 0xa7, 0};
+
+ static const char PROGMEM ctrl_line_1[] = {
+ 0x88, 0x89, 0x8a, 0x8b, 0};
+ static const char PROGMEM ctrl_line_2[] = {
+ 0xa8, 0xa9, 0xaa, 0xab, 0};
+
+ static const char PROGMEM os_line_1[] = {
+ 0x8c, 0x8d, 0x8e, 0};
+ static const char PROGMEM os_line_2[] = {
+ 0xac, 0xad, 0xae, 0};
+
+ static const char PROGMEM alt_line_1[] = {
+ 0x8f, 0x90, 0x91, 0};
+ static const char PROGMEM alt_line_2[] = {
+ 0xaf, 0xb0, 0xb1, 0};
+
+ if (modifiers & MOD_MASK_GUI) {
+ oled_write(" ", false);
+ oled_write_ln_P(os_line_1, false);
+ oled_write(" ", false);
+ oled_write_ln_P(os_line_2, false);
+ } else {
+ oled_write_ln("", false);
+ oled_write_ln("", false);
+ }
+
+ if (modifiers & MOD_MASK_SHIFT) {
+ oled_write(" ", false);
+ oled_write_ln_P(shift_line_1, false);
+ oled_write(" ", false);
+ oled_write_ln_P(shift_line_2, false);
+ } else {
+ oled_write_ln("", false);
+ oled_write_ln("", false);
+ }
+
+ if (modifiers & MOD_MASK_ALT) {
+ oled_write(" ", false);
+ oled_write_ln_P(alt_line_1, false);
+ oled_write(" ", false);
+ oled_write_ln_P(alt_line_2, false);
+ } else {
+ oled_write_ln("", false);
+ oled_write_ln("", false);
+ }
+
+ if (modifiers & MOD_MASK_CTRL) {
+ oled_write_ln_P(ctrl_line_1, false);
+ oled_write_ln_P(ctrl_line_2, false);
+ } else {
+ oled_write_ln("", false);
+ oled_write_ln("", false);
+ }
+}
+
+void render_status(void){
+ render_layer_name();
+
+ render_layer_symbol();
+
+ oled_write_P(PSTR("\n\n\n"), false);
+
+ render_mod_state(get_mods()|get_oneshot_mods());
+}
+
+bool oled_task_user(void) {
+ render_status();
+ return false;
+}
diff --git a/keyboards/crkbd/keymaps/colemad/oled.h b/keyboards/crkbd/keymaps/colemad/oled.h
new file mode 100644
index 0000000000..c096466e71
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/oled.h
@@ -0,0 +1,13 @@
+// Copyright 2022 Álvaro Cortés (@ACortesDev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+#ifdef OLED_ENABLE
+ bool process_record_oled(uint16_t keycode, keyrecord_t *record);
+ oled_rotation_t oled_init_user(oled_rotation_t rotation);
+ void render_layer_symbol(void);
+ void render_layer_name(void);
+ void render_mod_state(uint8_t modifiers);
+ void render_status(void);
+ bool oled_task_user(void);
+#endif \ No newline at end of file
diff --git a/keyboards/crkbd/keymaps/colemad/process_records.c b/keyboards/crkbd/keymaps/colemad/process_records.c
new file mode 100644
index 0000000000..549dec2464
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/process_records.c
@@ -0,0 +1,21 @@
+// Copyright 2022 Álvaro Cortés (@ACortesDev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#include "layers.h"
+#include "keycodes.h"
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ /* Macros */
+ switch (keycode) {
+ case VSCTERM:
+ if (record->event.pressed) {
+ SEND_STRING(SS_LCTL("`")); // Ctrl + ` (to toggle vscode terminal)
+ }
+ return false;
+ case CHNLANG:
+ if (record->event.pressed) {
+ SEND_STRING(SS_LCTL(SS_LSFT("n"))); // Ctrl + Shift + N (to change keyboard layout)
+ }
+ return false;
+ }
+ return true;
+}
diff --git a/keyboards/crkbd/keymaps/colemad/process_records.h b/keyboards/crkbd/keymaps/colemad/process_records.h
new file mode 100644
index 0000000000..7cedcfbe68
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/process_records.h
@@ -0,0 +1,5 @@
+// Copyright 2022 Álvaro Cortés (@ACortesDev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record);
diff --git a/keyboards/crkbd/keymaps/colemad/readme.md b/keyboards/crkbd/keymaps/colemad/readme.md
new file mode 100644
index 0000000000..404fa9e798
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/readme.md
@@ -0,0 +1,106 @@
+# **COLEMAD**
+
+## Corne Keyboard (CRKBD) **Colemak** layout by [ACortesDev](https://github.com/ACortesDev)
+
+1. **Fast navigation**.
+2. **Fast symbols**.
+3. **Fast numbers**.
+ Using the Telephone/ATM numpad layout. Easier to memorize/visualize as numbers follow *left-to-right, top-to-bottom* order.
+4. **Fast capital letters**.
+ Added a *CAPS Lock* key because... [There is no *CAPS Lock* key in the Colemak Layout](https://colemak.com/FAQ#Where_is_the_Caps_Lock_key.3F).
+
+---
+
+### **Flashing**
+
+For *Pro Micro* execute: `sudo make crkbd:colemad:avrdude`
+
+For *Elite-C* execute: `sudo make crkbd:colemad:dfu`
+
+---
+
+### **Layers**
+
+#### 0. **COLEMAK**
+
+Notes:
+
+- Double tap Shift to (de)activate CAPS Lock.
+- Hold down the Enter thumb key to switch to the LOWER layer
+- Hold down the Space thumb key to switch to the RAISE layer
+- Characters **"** **:** **|** **<** **>** **?** as you would expect them using *Shift*.
+
+```text
+ ,-----------------------------------------------------. ,-----------------------------------------------------.
+ | Tab | Q | W | F | P | G | | J | L | U | Y | ; | \ |
+ |--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ | BackSP | A | R | S | T | D | | H | N | E | I | O | ' |
+ |--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ | Shift | Z | X | C | V | B | | K | M | , | . | / | ESC |
+ `--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------'
+ ,--------. ,--------.
+ ,-----------------| | | |-----------------.
+ | Alt | Ctrl | Space | | Enter | Shift | GUI |
+ | | | (RAISE)| |(LOWER) | | |
+ `--------+--------+--------' `--------+--------+--------'
+```
+
+#### 1. **LOWER**
+
+##### Numpad + Navigation
+
+```text
+ ,-----------------------------------------------------. ,-----------------------------------------------------.
+ | Tab | 0 | 1 | 2 | 3 | - | | PgUP | HOME | ↑ | END | ESC | |
+ |--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ | BackSP | / | 4 | 5 | 6 | + | | PgDN | ← | ↓ | → | DEL | |
+ |--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ | Shift | * | 7 | 8 | 9 | = | | | | | | | ESC |
+ `--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------'
+ ,--------. ,--------.
+ ,-----------------| | | |-----------------.
+ | Alt | Ctrl | Space | | | Shift | GUI |
+ | | | (RAISE)| |(LOWER) | | |
+ `--------+--------+--------' `--------+--------+--------'
+```
+
+#### 2. **RAISE**
+
+##### Symbols + Function Keys
+
+```text
+ ,-----------------------------------------------------. ,-----------------------------------------------------.
+ | Tab | ! | @ | # | $ | % | | ^ | & | * | ( | ) | F11 |
+ |--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ | BackSP | F1 | F2 | F3 | F4 | F5 | | ` | - | = | [ | ] | F12 |
+ |--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ | Shift | F6 | F7 | F8 | F9 | F10 | | ~ | _ | + | { | } | ESC |
+ `--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------'
+ ,--------. ,--------.
+ ,-----------------| | | |-----------------.
+ | Alt | Ctrl | | | Enter | Shift | GUI |
+ | | | (RAISE)| |(LOWER) | | |
+ `--------+--------+--------' `--------+--------+--------'
+```
+
+#### 3. **ADJUST**
+
+##### Macros + Settings
+
+```text
+ ,-----------------------------------------------------. ,-----------------------------------------------------.
+ | | | | | | | |RGB_TOG |RGB_MOD |RGB_VAI |RGB_HUI |RGB_SAI |RGB_SPI |
+ |--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ | | |VSCTERM | PSCR |CHNLANG | | | |RGB_RMOD|RGB_VAD |RGB_HUD |RGB_SAD |RGB_SPD |
+ |--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
+ | | | | | | | | | | | | | |
+ `--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------'
+ ,--------. ,--------.
+ ,-----------------| | | |-----------------.
+ | | | | | | | |
+ | | | (RAISE)| |(LOWER) | | |
+ `--------+--------+--------' `--------+--------+--------'
+```
+
+- Macro **VSCTERM**: Toggles the vscode terminal (Ctrl + `)
+- Macro **CHNLANG**: Changes the OS keyboard layout (Ctrl + Shift + N)
diff --git a/keyboards/crkbd/keymaps/colemad/rules.mk b/keyboards/crkbd/keymaps/colemad/rules.mk
new file mode 100644
index 0000000000..6f9d31a755
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/rules.mk
@@ -0,0 +1,21 @@
+RGB_MATRIX_ENABLE = yes
+RGBLIGHT_ENABLE = no
+SPLIT_KEYBOARD = yes
+TAP_DANCE_ENABLE = yes
+MOUSEKEY_ENABLE = no
+OLED_ENABLE = yes
+OLED_DRIVER = SSD1306
+
+
+# Link Time Optimization (Reduces compiled size)
+LTO_ENABLE = yes
+
+SRC += ./process_records.c
+
+ifeq ($(TAP_DANCE_ENABLE),yes)
+ SRC += ./tap_dances.c
+endif
+
+ifeq ($(OLED_ENABLE),yes)
+ SRC += ./oled.c
+endif
diff --git a/keyboards/crkbd/keymaps/colemad/tap_dances.c b/keyboards/crkbd/keymaps/colemad/tap_dances.c
new file mode 100644
index 0000000000..fc47cfd8d1
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/tap_dances.c
@@ -0,0 +1,7 @@
+// Copyright 2022 Álvaro Cortés (@ACortesDev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#include "tap_dances.h"
+
+qk_tap_dance_action_t tap_dance_actions[] = {
+ [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS)
+};
diff --git a/keyboards/crkbd/keymaps/colemad/tap_dances.h b/keyboards/crkbd/keymaps/colemad/tap_dances.h
new file mode 100644
index 0000000000..1d7cf1e7f4
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/tap_dances.h
@@ -0,0 +1,11 @@
+// Copyright 2022 Álvaro Cortés (@ACortesDev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+#include QMK_KEYBOARD_H
+
+enum custom_tapdances{
+ TD_LSFT_CAPS = 0,
+};
+
+#define T_SFT TD(TD_LSFT_CAPS) /* Tap for Shift, double tap for CAPSLOCK */