mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-25 20:56:42 +00:00
c6cc104810
Co-authored-by: jack <0x6a73@protonmail.com>
109 lines
6.2 KiB
C
109 lines
6.2 KiB
C
/* Copyright 2022 CyanDuck
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
// Defines names for use in layer keycodes and the keymap
|
|
enum layer_names {
|
|
_QWERTY,
|
|
_NAVNUM,
|
|
_SYM,
|
|
_FUNC,
|
|
};
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
/* QWERTY
|
|
*
|
|
* ,----------------------------------. ,----------------------------------.
|
|
* | Q | W | E | R | T | | Y | U | I | O | P |
|
|
* |------+------+------+------+------| |------+------+------+------+------|
|
|
* | A | S | D | F | G | | H | J | K | L | ; |
|
|
* |------+------+------+------+------| ,-----. ,-----. |------+------+------+------+------|
|
|
* | Z | X | C | V | B | |CAPS | |NUMLK| | N | M | , | . | / |
|
|
* `----------------------------------' `-----' `-----' `----------------------------------'
|
|
* ,-----. ,--------------------. ,--------------------. ,-----.
|
|
* | 1 | | DEL | SPACE | TAB | | ESC | BS | ENTER | | 4 |
|
|
* `-----' `--------------------' `--------------------' `-----'
|
|
*/
|
|
[_QWERTY] = LAYOUT(
|
|
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
|
MT(MOD_LGUI, KC_A), MT(MOD_LALT, KC_S), MT(MOD_LCTL, KC_D), MT(MOD_LSFT, KC_F), KC_G, KC_H, MT(MOD_LSFT, KC_J), MT(MOD_LCTL, KC_K), MT(MOD_LALT, KC_L), MT(MOD_LGUI, KC_SCLN),
|
|
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
|
KC_1, LT(3,KC_DEL), LT(1,KC_SPC), KC_TAB, KC_CAPS, KC_NUM, KC_ESC, KC_BSPC, LT(2,KC_ENT), KC_4
|
|
),
|
|
|
|
/* NAVNUM
|
|
*
|
|
* ,----------------------------------. ,----------------------------------.
|
|
* | | PgUp | UP | PgDn | | | / | 7 | 8 | 9 | - |
|
|
* |------+------+------+------+------| |------+------+------+------+------|
|
|
* | Home | Left | Down | Right| End | | = | 4 | 5 | 6 | + |
|
|
* |------+------+------+------+------| ,-----. ,-----. |------+------+------+------+------|
|
|
* | | | INS | | | |CAPS | |NUMLK| | 0 | 1 | 2 | 3 | * |
|
|
* `----------------------------------' `-----' `-----' `----------------------------------'
|
|
* ,-----. ,--------------------. ,--------------------. ,-----.
|
|
* | 1 | | DEL | SPACE | TAB | | ESC | BS | ENTER | | 4 |
|
|
* `-----' `--------------------' `--------------------' `-----'
|
|
*/
|
|
[_NAVNUM] = LAYOUT(
|
|
KC_NO, KC_PGUP, KC_UP, KC_PGDN, KC_NO, KC_SLSH, KC_7, KC_8, KC_9, KC_MINS,
|
|
KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, KC_EQL, KC_4, KC_5, KC_6, KC_PLUS,
|
|
KC_NO, KC_NO, KC_INS, KC_NO, KC_NO, KC_0, KC_1, KC_2, KC_3, KC_ASTR,
|
|
KC_1, LT(3,KC_DEL), LT(1,KC_SPC), KC_TAB, KC_CAPS, KC_NUM, KC_ESC, KC_BSPC, LT(2,KC_ENT), KC_4
|
|
),
|
|
|
|
/* SYM
|
|
*
|
|
* ,----------------------------------. ,----------------------------------.
|
|
* | % | @ | [ | ] | \ | | | | ^ | | |
|
|
* |------+------+------+------+------| |------+------+------+------+------|
|
|
* | # | ! | ( | ) | | | | _ | ' | " | ~ | ` |
|
|
* |------+------+------+------+------| ,-----. ,-----. |------+------+------+------+------|
|
|
* | $ | £ | { | } | & | |CAPS | |NUMLK| | | | | | |
|
|
* `----------------------------------' `-----' `-----' `----------------------------------'
|
|
* ,-----. ,--------------------. ,--------------------. ,-----.
|
|
* | 1 | | DEL | SPACE | TAB | | ESC | BS | ENTER | | 4 |
|
|
* `-----' `--------------------' `--------------------' `-----'
|
|
*/
|
|
[_SYM] = LAYOUT(
|
|
KC_PERC, KC_AT, KC_LBRC, KC_RBRC, KC_BSLS, KC_NO, KC_NO, KC_CIRC, KC_NO, KC_NO,
|
|
KC_HASH, KC_EXLM, KC_LPRN, KC_RPRN, KC_PIPE, KC_UNDS, KC_QUOT, KC_DQT, KC_TILD, KC_GRV,
|
|
KC_DLR, KC_NO, KC_LCBR, KC_RCBR, KC_AMPR, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
|
KC_1, LT(3,KC_DEL), LT(1,KC_SPC), KC_TAB, KC_CAPS, KC_NUM, KC_ESC, KC_BSPC, LT(2,KC_ENT), KC_4
|
|
),
|
|
|
|
/* FUNC
|
|
*
|
|
* ,----------------------------------. ,----------------------------------.
|
|
* | | | | | | | | F7 | F8 | F9 | F11 |
|
|
* |------+------+------+------+------| |------+------+------+------+------|
|
|
* | | | | | | | | F4 | F5 | F6 | F12 |
|
|
* |------+------+------+------+------| ,-----. ,-----. |------+------+------+------+------|
|
|
* | Reset| | | | | |CAPS | |NUMLK| | F10 | F1 | F2 | F3 | F13 |
|
|
* `----------------------------------' `-----' `-----' `----------------------------------'
|
|
* ,-----. ,--------------------. ,--------------------. ,-----.
|
|
* | 1 | | DEL | SPACE | TAB | | ESC | BS | ENTER | | 4 |
|
|
* `-----' `--------------------' `--------------------' `-----'
|
|
*/
|
|
[_FUNC] = LAYOUT(
|
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_F7, KC_F8, KC_F9, KC_F11,
|
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_F4, KC_F5, KC_F6, KC_F12,
|
|
QK_BOOT, KC_NO, KC_NO, KC_NO, KC_NO, KC_F10, KC_F1, KC_F2, KC_F3, KC_F13,
|
|
KC_1, LT(3,KC_DEL), LT(1,KC_SPC), KC_TAB, KC_CAPS, KC_NUM, KC_ESC, KC_BSPC, LT(2,KC_ENT), KC_4
|
|
),
|
|
};
|