-
-
Notifications
You must be signed in to change notification settings - Fork 39.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added COLEMAD: A Colemak crkbd keymap
- Loading branch information
1 parent
16cd1d9
commit c5a66d3
Showing
13 changed files
with
676 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, 0x18, 0x3C, 0x18, 0x00, 0x00, | ||
0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00, | ||
0x00, 0x18, 0x24, 0x18, 0x00, 0x00, | ||
0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00, | ||
0x30, 0x48, 0x3A, 0x06, 0x0E, 0x00, | ||
0x26, 0x29, 0x79, 0x29, 0x26, 0x00, | ||
0x40, 0x7F, 0x05, 0x05, 0x07, 0x00, | ||
0x40, 0x7F, 0x05, 0x25, 0x3F, 0x00, | ||
0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00, | ||
0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00, | ||
0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00, | ||
0x14, 0x22, 0x7F, 0x22, 0x14, 0x00, | ||
0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00, | ||
0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00, | ||
0x00, 0x66, 0x89, 0x95, 0x6A, 0x00, | ||
0x60, 0x60, 0x60, 0x60, 0x60, 0x00, | ||
0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00, | ||
0x08, 0x04, 0x7E, 0x04, 0x08, 0x00, | ||
0x10, 0x20, 0x7E, 0x20, 0x10, 0x00, | ||
0x08, 0x08, 0x2A, 0x1C, 0x08, 0x00, | ||
0x08, 0x1C, 0x2A, 0x08, 0x08, 0x00, | ||
0x1E, 0x10, 0x10, 0x10, 0x10, 0x00, | ||
0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00, | ||
0x30, 0x38, 0x3E, 0x38, 0x30, 0x00, | ||
0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x5F, 0x00, 0x00, 0x00, | ||
0x00, 0x07, 0x00, 0x07, 0x00, 0x00, | ||
0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00, | ||
0x24, 0x2A, 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, | ||
0x3C, 0x26, 0x23, 0x26, 0x3C, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, | ||
0xF8, 0x18, 0x00, 0xC0, 0xF0, 0xFC, | ||
0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | ||
0xFF, 0xFF, 0x7E, 0x00, 0x00, 0x00, | ||
0xF8, 0xFC, 0x06, 0x03, 0x83, 0x43, | ||
0x23, 0x13, 0x23, 0x43, 0x83, 0x03, | ||
0x06, 0xFC, 0x00, 0x00, 0x00, 0x00, | ||
0xF8, 0xFC, 0x06, 0x03, 0xE3, 0x23, | ||
0x23, 0x03, 0x23, 0xE3, 0x23, 0x03, | ||
0xE3, 0xA3, 0x63, 0x03, 0xE3, 0x03, | ||
0x03, 0x03, 0x06, 0xFC, 0x00, 0x00, | ||
0xF8, 0xFC, 0x06, 0x03, 0xC3, 0x23, | ||
0x23, 0xC3, 0x03, 0x43, 0xA3, 0x23, | ||
0x43, 0x03, 0x06, 0xFC, 0x00, 0x00, | ||
0xF8, 0xFC, 0x06, 0x03, 0xE3, 0xA3, | ||
0xE3, 0x03, 0xE3, 0x03, 0x83, 0xE3, | ||
0x83, 0x03, 0x06, 0xFC, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x80, 0x80, 0x40, 0x40, 0x20, 0x20, | ||
0x10, 0x10, 0x08, 0x08, 0x10, 0x10, | ||
0x20, 0x20, 0x40, 0x40, 0x80, 0x80, | ||
0x80, 0x80, 0xC0, 0xC0, 0xE0, 0xE0, | ||
0xF0, 0xF0, 0xF8, 0xF8, 0xF0, 0xF0, | ||
0xE0, 0xE0, 0xC0, 0xC0, 0x80, 0x80, | ||
0x80, 0x80, 0x40, 0x40, 0x20, 0x20, | ||
0x10, 0x10, 0x08, 0x08, 0x10, 0x10, | ||
0x20, 0x20, 0x40, 0x40, 0x80, 0x80, | ||
0x80, 0x80, 0x40, 0xC0, 0x60, 0xA0, | ||
0x50, 0xB0, 0x58, 0xA8, 0x50, 0xB0, | ||
0x60, 0xA0, 0x40, 0xC0, 0x80, 0x80, | ||
0x00, 0xF8, 0xFC, 0xFE, 0xFF, 0xE0, | ||
0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | ||
0xFF, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, | ||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, | ||
0x07, 0x01, 0x00, 0x00, 0x00, 0x00, | ||
0x1F, 0x3F, 0x60, 0x41, 0x41, 0x4F, | ||
0x48, 0x48, 0x48, 0x4F, 0x41, 0x41, | ||
0x20, 0x1F, 0x00, 0x00, 0x00, 0x00, | ||
0x1F, 0x3F, 0x60, 0x40, 0x47, 0x44, | ||
0x44, 0x40, 0x40, 0x47, 0x40, 0x40, | ||
0x47, 0x40, 0x47, 0x40, 0x47, 0x44, | ||
0x44, 0x40, 0x20, 0x1F, 0x00, 0x00, | ||
0x1F, 0x3F, 0x60, 0x40, 0x43, 0x44, | ||
0x44, 0x43, 0x40, 0x42, 0x44, 0x45, | ||
0x42, 0x40, 0x20, 0x1F, 0x00, 0x00, | ||
0x1F, 0x3F, 0x60, 0x40, 0x47, 0x40, | ||
0x47, 0x40, 0x47, 0x44, 0x40, 0x47, | ||
0x44, 0x40, 0x20, 0x1F, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x88, 0x88, 0x5D, 0x5D, 0x3E, 0x3E, | ||
0x7C, 0x7C, 0xF8, 0xF8, 0x7C, 0x7C, | ||
0x3E, 0x3E, 0x5D, 0x5D, 0x88, 0x88, | ||
0x88, 0x88, 0x55, 0x55, 0x23, 0x23, | ||
0x47, 0x47, 0x8F, 0x8F, 0x47, 0x47, | ||
0x23, 0x23, 0x55, 0x55, 0x88, 0x88, | ||
0x88, 0x88, 0xD5, 0xD5, 0xE2, 0xE2, | ||
0xC4, 0xC4, 0x88, 0x88, 0xC4, 0xC4, | ||
0xE2, 0xE2, 0xD5, 0xD5, 0x88, 0x88, | ||
0x88, 0x88, 0x5D, 0xD5, 0x6B, 0xB6, | ||
0x6D, 0xD6, 0xAD, 0xDA, 0x6D, 0xD6, | ||
0x6B, 0xB6, 0x5D, 0xD5, 0x88, 0x88, | ||
0x00, 0x03, 0x0F, 0x1F, 0x3F, 0x3F, | ||
0x3F, 0x3F, 0x1F, 0x1F, 0x3F, 0x3F, | ||
0x7F, 0x7F, 0x7F, 0x3F, 0x3F, 0x1F, | ||
0x3F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7C, | ||
0x78, 0x78, 0x38, 0x1C, 0x0F, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x01, 0x01, 0x02, 0x02, | ||
0x04, 0x04, 0x08, 0x08, 0x04, 0x04, | ||
0x02, 0x02, 0x01, 0x01, 0x00, 0x00, | ||
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, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, | ||
}; |
Oops, something went wrong.