[Keymap] A Colemak keymap for the crkbd keyboard (#16550)

This commit is contained in:
Álvaro Cortés
2022-04-19 12:32:11 +02:00
committed by GitHub
parent bde724e124
commit 50ec365806
13 changed files with 676 additions and 0 deletions

View File

@@ -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;
}